Displaying 1 result from an estimated 1 matches for "has_inverse".
2011 Mar 29
0
inverse_of not supported in Rails 3 for has_many?
...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.ruby-forum.com/.
--
You received this messa...