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