aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-04-03 14:49:11 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-04-03 14:49:11 +0900
commit834716b2ee107ed95c21a308be6b1983411ccd66 (patch)
treed6790b615eac622e65dadfc9f8b1d7dc9b57fce9
parent96f0114e082b116856e945b075abd747eff0e63e (diff)
downloadrails-834716b2ee107ed95c21a308be6b1983411ccd66.tar.gz
rails-834716b2ee107ed95c21a308be6b1983411ccd66.tar.bz2
rails-834716b2ee107ed95c21a308be6b1983411ccd66.zip
Don't assign to `@changed_attributes` in `becomes`
`@changed_attributes` is no longer used since #30985.
-rw-r--r--activerecord/lib/active_record/persistence.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index a87b9e7db2..bf2f61737b 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -568,7 +568,6 @@ module ActiveRecord
became.send(:initialize)
became.instance_variable_set("@attributes", @attributes)
became.instance_variable_set("@mutations_from_database", @mutations_from_database ||= nil)
- became.instance_variable_set("@changed_attributes", attributes_changed_by_setter)
became.instance_variable_set("@new_record", new_record?)
became.instance_variable_set("@destroyed", destroyed?)
became.errors.copy!(errors)