aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorlulalala <mark@goodlife.tw>2012-10-02 22:30:06 +0800
committerlulalala <mark@goodlife.tw>2012-10-02 23:49:32 +0800
commit6e56a03f834202af4e57c50a71cc74ea08303bfd (patch)
treee3d60012629b06078cbda72e5f1d0130a01900bc /activerecord/CHANGELOG.md
parent8ea88c3b74a20b56d39ab820244e0b3806a84169 (diff)
downloadrails-6e56a03f834202af4e57c50a71cc74ea08303bfd.tar.gz
rails-6e56a03f834202af4e57c50a71cc74ea08303bfd.tar.bz2
rails-6e56a03f834202af4e57c50a71cc74ea08303bfd.zip
Fix reset_counters() crashing on has_many :through associations.
The counter column name in the intermediate model need to be access via the through reflection.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 67bec5f38e..8ff4c4706c 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,10 @@
## Rails 4.0.0 (unreleased) ##
+* Fix `reset_counters` crashing on `has_many :through` associations.
+ Fix #7822.
+
+ *lulalala*
+
* Support for partial inserts.
When inserting new records, only the fields which have been changed