提交 ab6ebcce 编写于 作者: A Aaron Patterson

copy over columns hash on reload

上级 d592ea3b
......@@ -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 = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册