X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7d52305640d647d97c7904e447ad48e6d0e2f694..15a7276a9f50821a7728b4da3af16849284f251b:/app/models/friend.rb?ds=sidebyside 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