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 [146a7505680cbb646c0b9d55dca7cc8494b36e47] by Eloy Duran

Revision 146a7505680cbb646c0b9d55dca7cc8494b36e47, committed by Eloy Duran · December 28th, 2009 @ 03:46 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/146a7505680cbb646c0b9d55dca7cc...

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