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