Permalink
Browse files

copy over columns hash on reload

  • Loading branch information...
tenderlove committed Feb 7, 2012
1 parent d592ea3 commit ab6ebcceb1052f55ff8a93cf2a80b79f32c50ee9
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/lib/active_record/persistence.rb
@@ -287,6 +287,7 @@ def reload(options = nil)
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 = {}

0 comments on commit ab6ebcc

Please sign in to comment.