aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-02-25 14:57:06 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2014-02-25 14:57:49 -0800
commitb1656fa6305a5c8237027ab8165d7292751c0e86 (patch)
tree936a345805dfacbf2c701f0e4d4379d2819bc695 /activerecord/CHANGELOG.md
parent7c2ce0403badb73da517002f980bac30c540ade4 (diff)
downloadrails-b1656fa6305a5c8237027ab8165d7292751c0e86.tar.gz
rails-b1656fa6305a5c8237027ab8165d7292751c0e86.tar.bz2
rails-b1656fa6305a5c8237027ab8165d7292751c0e86.zip
let `insert_record` actuall save the object.
`before_add` callbacks are fired before the record is saved on `has_and_belongs_to_many` assocations *and* on `has_many :through` associations. Before this change, `before_add` callbacks would be fired before the record was saved on `has_and_belongs_to_many` associations, but *not* on `has_many :through` associations. Fixes #14144
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 128628ccee..58f680a03f 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,11 @@
+* `before_add` callbacks are fired before the record is saved on
+ `has_and_belongs_to_many` assocations *and* on `has_many :through`
+ associations. Before this change, `before_add` callbacks would be fired
+ before the record was saved on `has_and_belongs_to_many` associations, but
+ *not* on `has_many :through` associations.
+
+ Fixes #14144
+
* Fixed STI classes not defining an attribute method if there is a
conflicting private method defined on its ancestors.