This project is archived and is in readonly mode.
Changeset [c6e10b0f600a56e962ff7d1614c50fca20630379] by Jon Leighton
Revision c6e10b0f600a56e962ff7d1614c50fca20630379,
committed by Jon Leighton
· January 11th, 2011 @ 09:45 PM
has_one should always remove the old record (properly), even if
not saving the new record, so we don't get the database into a
pickle
https://github.com/rails/rails/commit/c6e10b0f600a56e962ff7d1614c50...
4 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/fixtures/ships.yml -
M
activerecord/test/models/pirate.rb