Check out :inverse_of
When it’s set, foo.bars.first.foo
is automatically set to the “parent” foo.
In Rails 4.1, this will be automatic when it can be detected: https://github.com/rails/rails/pull/9522
Check out :inverse_of
When it’s set, foo.bars.first.foo
is automatically set to the “parent” foo.
In Rails 4.1, this will be automatic when it can be detected: https://github.com/rails/rails/pull/9522