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 On Sat, Mar 23, 2013 at 5:51 AM, Adrien Siami <[email protected]>wrote: > Hi guys, > > I created a ticket about this issue on the github repository but I was > told it's not a bug, so here I am ! > > The link to the closed issue : https://github.com/rails/rails/issues/9886 > > The link to the example repository : > https://github.com/Intrepidd/eager-loading-parent > > I'd love to submit a pull request for that but I'm very new in the rails > edge world. > > What do you think ? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
