X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7d52305640d647d97c7904e447ad48e6d0e2f694..d2585ea0445ea5190fdbd578911c7e3489856086:/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