This project is archived and is in readonly mode.
Changeset [0fee3592786da833bcfbe20afc3a9483118c3c12] by Will Bryant
December 7th, 2010 @ 08:48 PM
Don't add non-new records back to the target array after loading targets on associations, as that makes destroy_all destroy any created records that don't match the scope destroy_all is called on
Signed-off-by: Michael Koziarski
michael@koziarski.com
https://github.com/rails/rails/commit/0fee3592786da833bcfbe20afc3a9...
Committed by Will Bryant
- M activerecord/lib/active_record/associations/association_collection.rb
- M activerecord/test/cases/associations/has_many_associations_test.rb
- M activerecord/test/models/company.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>