From 70fa756ddb83684a05c840ff16e6b57cff5c5048 Mon Sep 17 00:00:00 2001 From: Thomas Hollstegge Date: Wed, 14 Sep 2011 17:32:31 +0200 Subject: AR::Base.becomes should not change the STI type If you want to change the STI type too, use AR::Base.becomes! instead --- activerecord/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'activerecord/CHANGELOG.md') 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: -- cgit v1.2.3