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 [7f7b480098fa780dd76b4c1243230d74be67b3ca] by Jon Leighton

Revision 7f7b480098fa780dd76b4c1243230d74be67b3ca, committed by Jon Leighton · January 11th, 2011 @ 09:45 PM

When assigning a has_one, if the new record fails to save, raise an error
https://github.com/rails/rails/commit/7f7b480098fa780dd76b4c1243230...

3 changed files

  • M activerecord/lib/active_record/associations/has_one_association.rb
  • M activerecord/test/cases/associations/has_one_associations_test.rb
  • M activerecord/test/cases/autosave_association_test.rb