]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/friend.rb
Remove bogus sort that is implied by the intermate association
[rails.git] / app / models / friend.rb
index 242b7425127f5f976bf2d08a158f3689c6cf3b1e..d740a711cfaef4c97dcbcb7d17a2de812f0e2b16 100644 (file)
@@ -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