aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-03 13:12:04 +0000
committerJon Leighton <j@jonathanleighton.com>2011-11-03 13:13:13 +0000
commit19b2a5f2bdd5bf6404bfc3e574b7477038e9b2bf (patch)
treee56662ad1827608c92a2e0088c8bca3cfab2ff38 /activerecord/CHANGELOG
parent71bc921ec8ac89840077bb54752282a3d89429f6 (diff)
downloadrails-19b2a5f2bdd5bf6404bfc3e574b7477038e9b2bf.tar.gz
rails-19b2a5f2bdd5bf6404bfc3e574b7477038e9b2bf.tar.bz2
rails-19b2a5f2bdd5bf6404bfc3e574b7477038e9b2bf.zip
Remove all revelant through records.
If a record is removed from a has_many :through, all of the join records relating to that record should also be removed from the through association's target. (Previously the records were removed in the database, but only one was removed from the in-memory target array.)
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index fac9ad1188..203b110e98 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -39,6 +39,11 @@
*Rails 3.1.2 (unreleased)*
+* If a record is removed from a has_many :through, all of the join records relating to that
+ record should also be removed from the through association's target.
+
+ [Jon Leighton]
+
* Fix adding multiple instances of the same record to a has_many :through. [GH #3425]
[Jon Leighton]