提交 1a5394f4 编写于 作者: A Aaron Patterson

lock around mutating the generated methods module

上级 6e43fcb3
......@@ -46,8 +46,10 @@ def define_attribute_methods # :nodoc:
end
def undefine_attribute_methods # :nodoc:
super if @attribute_methods_generated
@attribute_methods_generated = false
generated_attribute_methods.synchronize do
super if @attribute_methods_generated
@attribute_methods_generated = false
end
end
# Raises a <tt>ActiveRecord::DangerousAttributeError</tt> exception when an
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册