mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #13514 from kuldeepaggarwal/f-removed-warnings
Removed warnings: setting `changed_attributes` instance variable if it is already initialized.
This commit is contained in:
commit
f66f483d90
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ module ActiveRecord
|
|||
became = klass.new
|
||||
became.instance_variable_set("@attributes", @attributes)
|
||||
became.instance_variable_set("@attributes_cache", @attributes_cache)
|
||||
became.instance_variable_set("@changed_attributes", @changed_attributes)
|
||||
became.instance_variable_set("@changed_attributes", @changed_attributes) if defined?(@changed_attributes)
|
||||
became.instance_variable_set("@new_record", new_record?)
|
||||
became.instance_variable_set("@destroyed", destroyed?)
|
||||
became.instance_variable_set("@errors", errors)
|
||||
|
|
Loading…
Reference in a new issue