1
0
Fork 0
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:
Aaron Patterson 2012-02-06 17:10:44 -08:00
parent d592ea3b02
commit ab6ebcceb1

View file

@ -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 = {}