search for: received_friendships

Displaying 1 result from an estimated 1 matches for "received_friendships".

2008 Nov 20
3
Any progress on undirected self-referential many to many relationships?
...y to merge 2 lists into a single has_many? Like this: has_many :initiated_friendships, :foreign_key =>''befriender_id'', :class_name => ''Friendship'', :dependent => :destroy has_many :received_friendships, :foreign_key =>''befriendee_id'', :class_name => ''Friendship'', :dependent => :destroy has_many :friends, :through=>union (:received_friendships,:initiated_friendships) --~--~--...