aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorDr.(USA) Joerg Schray <joerg.schray@tandem-softworks.de>2012-03-16 12:26:24 +0100
committerBen Woosley <ben.woosley@gmail.com>2013-08-12 02:37:39 -0700
commit018697dece967f3f2861a085e747ba14f06c507c (patch)
tree0255f2b86bc10e6295ab5368cdcb9a45c4b2a587 /activerecord/CHANGELOG.md
parent0f834868bfd0d98c6d144543bc49c86df53e9a91 (diff)
downloadrails-018697dece967f3f2861a085e747ba14f06c507c.tar.gz
rails-018697dece967f3f2861a085e747ba14f06c507c.tar.bz2
rails-018697dece967f3f2861a085e747ba14f06c507c.zip
Fix interactions between :before_add callbacks and nested attributes assignment
Issue #1: :before_add callback is called when nested attributes assignment assigns to existing record if the association is not yet loaded Issue #2: Nested Attributes assignment does not affect the record in the association target when callback triggers loading of the association
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 3010f42cd6..6b3e5df1a7 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,18 @@
+* Fix interactions between `:before_add` callbacks and nested attributes
+ assignment of `has_many` associations, when the association was not
+ yet loaded:
+
+ - A `:before_add` callback was being called when a nested attributes
+ assignment assigned to an existing record.
+
+ - Nested Attributes assignment did not affect the record in the
+ association target when a `:before_add` callback triggered the
+ loading of the association
+
+ *Jörg Schray*
+
* Allow enable_extension migration method to be revertible.
-
+
*Eric Tipton*
* Type cast hstore values on write, so that the value is consistent