Displaying 1 result from an estimated 1 matches for "we_can_set_the_inverse_on_thi".
Did you mean:
we_can_set_the_inverse_on_this
2011 Mar 29
0
inverse_of not supported in Rails 3 for has_many?
...ugh the association classes in the rails 3 source and
noticed that we aren''t supporting bi-directional associations with
has_many and belongs_to:
# NOTE - for now, we''re only supporting inverse setting from
belongs_to back onto
# has_one associations.
def we_can_set_the_inverse_on_this?(record)
@reflection.has_inverse? && @reflection.inverse_of.macro ==
:has_one
end
Why wasn''t that implemented, it doesn''t seems much more difficult to
implement
than has_one and belongs_to.
I''m running rails 3.0.5.
--
Posted via http://www.r...