This project is archived and is in readonly mode.
Changeset [d55406d2e991056b08f69eb68bcf9b17da807b6c] by Jon Leighton
Revision d55406d2e991056b08f69eb68bcf9b17da807b6c,
committed by Jon Leighton
· February 7th, 2011 @ 11:35 PM
Make record.association.destroy(*records) on habtm and hm:t only
delete records in the join table. This is to make the destroy
method more consistent across the different types of associations.
For more details see the CHANGELOG entry.
https://github.com/rails/rails/commit/d55406d2e991056b08f69eb68bcf9...
8 changed files
-
M
activerecord/CHANGELOG -
M
activerecord/lib/active_record/associations/association_collection.rb -
M
activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb -
M
activerecord/lib/active_record/associations/has_many_association.rb -
M
activerecord/lib/active_record/associations/has_many_through_association.rb -
M
activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb -
M
activerecord/test/cases/associations/has_many_through_associations_test.rb -
M
activerecord/test/cases/autosave_association_test.rb