I was looking through 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.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.