Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [9c771a9608f54ebdfcb6fca819c83038489ce50d] by Eloy Duran

Revision 9c771a9608f54ebdfcb6fca819c83038489ce50d, committed by Eloy Duran · December 28th, 2009 @ 03:56 PM

Make sure to not add autosave callbacks multiple times. [#3575 state:resolved]

This makes sure that, in a HABTM association, only one join record is craeted.
http://github.com/rails/rails/commit/9c771a9608f54ebdfcb6fca819c830...

4 changed files

  • M activerecord/lib/active_record/autosave_association.rb
  • M activerecord/lib/active_record/nested_attributes.rb
  • M activerecord/test/cases/autosave_association_test.rb
  • M activerecord/test/cases/nested_attributes_test.rb