aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-03-31 08:51:39 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-03-31 09:11:25 +0900
commitaae8fd0e07a9e924838845c1b29960f598fc14f3 (patch)
treef691dd32b108be3ada163641e4923623e05f7174 /activerecord/CHANGELOG.md
parentb89a3e7e638a50c648a17d09c48b49b707e1d90d (diff)
parent2e3bba3e3af8c41e833cced61f0449ad73c947cc (diff)
downloadrails-aae8fd0e07a9e924838845c1b29960f598fc14f3.tar.gz
rails-aae8fd0e07a9e924838845c1b29960f598fc14f3.tar.bz2
rails-aae8fd0e07a9e924838845c1b29960f598fc14f3.zip
Merge pull request #35799 from leboshi/master
Fix callbacks on has_many :through associations
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 690d487a09..432ac641c6 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,10 @@
+* Assign all attributes before calling `build` to ensure the child record is visible in
+ `before_add` and `after_add` callbacks for `has_many :through` associations.
+
+ Fixes #33249.
+
+ *Ryan H. Kerr*
+
* Add `ActiveRecord::Relation#extract_associated` for extracting associated records from a relation.
```