Inverse_of not supported in Rails 3 for has_many?

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs