X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7d52305640d647d97c7904e447ad48e6d0e2f694..58653f8b9d90c9f0a2f44d026b0ec84574f6bc9a:/app/models/friend.rb diff --git a/app/models/friend.rb b/app/models/friend.rb index 242b74251..d740a711c 100644 --- a/app/models/friend.rb +++ b/app/models/friend.rb @@ -1,4 +1,4 @@ class Friend < ActiveRecord::Base - belongs_to :user - + belongs_to :befriender, :class_name => "User", :foreign_key => :user_id + belongs_to :befriendee, :class_name => "User", :foreign_key => :friend_user_id end