mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
copy over columns hash on reload
This commit is contained in:
parent
d592ea3b02
commit
ab6ebcceb1
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +287,7 @@ module ActiveRecord
|
|||
IdentityMap.without do
|
||||
fresh_object = self.class.unscoped { self.class.find(id, options) }
|
||||
@attributes.update(fresh_object.instance_variable_get('@attributes'))
|
||||
@columns_hash = fresh_object.instance_variable_get('@columns_hash')
|
||||
end
|
||||
|
||||
@attributes_cache = {}
|
||||
|
|
Loading…
Reference in a new issue