提交 941e9904 编写于 作者: J Jeremy Kemper

Shush, new_callbacks

上级 c2018b4b
......@@ -396,8 +396,10 @@ def _run_#{symbol}_callbacks(key = nil, &blk)
end
RUBY_EVAL
undef_method "_run_#{symbol}_callbacks" if method_defined?("_run_#{symbol}_callbacks")
class_eval body, __FILE__, line
silence_warnings do
undef_method "_run_#{symbol}_callbacks" if method_defined?("_run_#{symbol}_callbacks")
class_eval body, __FILE__, line
end
end
# This is called the first time a callback is called with a particular
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册