aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorThomas Hollstegge <thomas.hollstegge@zweitag.de>2011-09-14 17:32:31 +0200
committerThomas Hollstegge <thomas.hollstegge@zweitag.de>2012-11-17 16:45:23 +0100
commit70fa756ddb83684a05c840ff16e6b57cff5c5048 (patch)
tree1fc943f7ce52cde153754b96c299f590f51d559f /activerecord/CHANGELOG.md
parentee9412839b8e4f30103519c20001a12582b824b8 (diff)
downloadrails-70fa756ddb83684a05c840ff16e6b57cff5c5048.tar.gz
rails-70fa756ddb83684a05c840ff16e6b57cff5c5048.tar.bz2
rails-70fa756ddb83684a05c840ff16e6b57cff5c5048.zip
AR::Base.becomes should not change the STI type
If you want to change the STI type too, use AR::Base.becomes! instead
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 4fa2dcb847..8078974b43 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,12 @@
## Rails 4.0.0 (unreleased) ##
+* Don't change STI type when calling ActiveRecord::Base#becomes, add
+ ActiveRecord::Base#becomes!
+
+ See #3023.
+
+ *Thomas Hollstegge*
+
* `#pluck` can be used on a relation with `select` clause. Fix #7551
Example: