1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Adam Hawkins 2012-04-15 16:21:06 +03:00 committed by Carlos Antonio da Silva
parent 9fc9e89477
commit 76cd1ca08d

View file

@ -41,8 +41,9 @@ module ActiveSupport
},
:notify => Proc.new { |message, callstack|
ActiveSupport::Notifications.instrument("deprecation.rails",
:message => message, :callstack => callstack)
}
:message => message, :callstack => callstack)
},
:silence => Proc.new { |message, callstack| }
}
end
end