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 [f664c57fe854c230d25c448b941569b81860fa79] by James Le Cuirot

Revision f664c57fe854c230d25c448b941569b81860fa79, committed by James Le Cuirot · June 19th, 2010 @ 11:32 PM

Don't overwrite unsaved updates when loading an association but preserve the order of the loaded records. Reapplied from before but now allows already-saved records to be refreshed.

[#4830 state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/f664c57fe854c230d25c448b941569...

3 changed files

  • M activerecord/lib/active_record/associations/association_collection.rb
  • M activerecord/test/cases/nested_attributes_test.rb
  • M activerecord/test/models/pirate.rb