diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2017-09-27 11:07:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-27 11:07:12 -0700 |
commit | 2235f6692279740131298edeb12cfe4cc8fd6ccc (patch) | |
tree | 11c263f7570a76b34fa65d01586cbef37c1c9689 /activerecord/lib/active_record/persistence.rb | |
parent | 9c833ba3a39923a49d1e52ed1eb2289d7944e780 (diff) | |
parent | c342d58446defad94f26c067b19003c9941f2470 (diff) | |
download | rails-2235f6692279740131298edeb12cfe4cc8fd6ccc.tar.gz rails-2235f6692279740131298edeb12cfe4cc8fd6ccc.tar.bz2 rails-2235f6692279740131298edeb12cfe4cc8fd6ccc.zip |
Merge pull request #30471 from dylanahsmith/remove-redundant-tracker
activerecord: Remove a redundant mutation tracker
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index b48a137a73..a57c60ffac 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -322,7 +322,7 @@ module ActiveRecord def becomes(klass) became = klass.new became.instance_variable_set("@attributes", @attributes) - became.instance_variable_set("@mutation_tracker", @mutation_tracker) if defined?(@mutation_tracker) + became.instance_variable_set("@mutations_from_database", @mutations_from_database) if defined?(@mutations_from_database) became.instance_variable_set("@changed_attributes", attributes_changed_by_setter) became.instance_variable_set("@new_record", new_record?) became.instance_variable_set("@destroyed", destroyed?) |