search for: source_user_id

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

2007 Jan 05
1
(Enhancement?) for self referential has_many :through, w/ scoped create...
...model which basically represents edges in a digraph (User to User, self-referenctial). Each of these edges can have a :connection_type which is currently just a char(1). has_many :friendships, :class_name => ''Connection'', :foreign_key => "source_user_id", :conditions => "connection_type = ''f''" has_many :friends, :through => :friendships, :source => :target_user Using has_many :through we''re able to connect up reading through reflections, but the << o...