X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/791062569dfca01a405637fa9ba142c222d3310c..34189cf761a871f366775843da580121b39b4e25:/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