Displaying 1 result from an estimated 1 matches for "end_setter".
Did you mean:
  end_getter
  
2006 Jul 23
8
belongs_to :through ?
Suppose I have a belongs_to relationship and the thing it belongs to, 
belongs in turn to something else.
For example, I would like to do:
belongs_to :city
belongs_to: :county, :through => :city
While it is not too much trouble to do obj.city.county, there are times 
when I need to iterate through the attributes and include this 
second-order attribute.  Special code to handle this messes up