aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2013-03-22 07:13:10 -0700
committerJon Leighton <j@jonathanleighton.com>2013-03-22 07:13:10 -0700
commita1d0b8c67b514d2d339d8687f64de7a84b4700e5 (patch)
treeaf47c84e9281bc45483ca8335ed9f2877388635a /activerecord/CHANGELOG.md
parent7748d64a76ae140cb80cd54d183bc1f94c192b9d (diff)
parent89828a405254bca8cf65259c54990dfe1921326d (diff)
downloadrails-a1d0b8c67b514d2d339d8687f64de7a84b4700e5.tar.gz
rails-a1d0b8c67b514d2d339d8687f64de7a84b4700e5.tar.bz2
rails-a1d0b8c67b514d2d339d8687f64de7a84b4700e5.zip
Merge pull request #9707 from route/updates_another_record
When strong_parameters had been included, this case of update became possible
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 771f1333f0..4a6e79c68e 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,4 +1,11 @@
## Rails 4.0.0 (unreleased) ##
+* After extraction of mass-assignment attributes (which protects [id, type]
+ by default) we can pass id to update_attributes and it will update
+ another record because id will be used in where statement. We never have
+ to change id in where statement because we try to set/replace fields for
+ already loaded record but we have to try to set new id for that record.
+
+ *Dmitry Vorotilin*
* Models with multiple counter cache associations now update correctly on destroy.
See #7706.