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 [6b2291f33063b6742cba84f5f64e03de9907c1f8] by Eloy Duran

Revision 6b2291f33063b6742cba84f5f64e03de9907c1f8, committed by Eloy Duran · November 6th, 2009 @ 10:53 PM

Define autosave association callbacks when using accepts_nested_attributes_for.

This way we don't define all the validation methods for all associations by
default, but only when needed.

[#3355 state:resolved] http://github.com/rails/rails/commit/6b2291f33063b6742cba84f5f64e03...

3 changed files

  • M activerecord/lib/active_record/nested_attributes.rb
  • M activerecord/test/models/pirate.rb
  • M activerecord/test/models/ship.rb