提交 76cd1ca0 编写于 作者: A Adam Hawkins 提交者: Carlos Antonio da Silva

Add a "silence" behavior to completely turn off deprecation warnings.

上级 9fc9e894
...@@ -41,8 +41,9 @@ def behavior=(behavior) ...@@ -41,8 +41,9 @@ def behavior=(behavior)
}, },
:notify => Proc.new { |message, callstack| :notify => Proc.new { |message, callstack|
ActiveSupport::Notifications.instrument("deprecation.rails", ActiveSupport::Notifications.instrument("deprecation.rails",
:message => message, :callstack => callstack) :message => message, :callstack => callstack)
} },
:silence => Proc.new { |message, callstack| }
} }
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册