diff options
author | Adam Hawkins <me@broadcastingadam.com> | 2012-04-15 16:21:06 +0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-04-28 13:40:30 -0300 |
commit | 76cd1ca08dc31babd7e9e527a8a9c86321ed905a (patch) | |
tree | 217571f4cc337bca04949ae5682823e5acef5cb4 /activesupport/lib/active_support/deprecation | |
parent | 9fc9e894771d1915fe3e565305424ed9ca537b79 (diff) | |
download | rails-76cd1ca08dc31babd7e9e527a8a9c86321ed905a.tar.gz rails-76cd1ca08dc31babd7e9e527a8a9c86321ed905a.tar.bz2 rails-76cd1ca08dc31babd7e9e527a8a9c86321ed905a.zip |
Add a "silence" behavior to completely turn off deprecation warnings.
Diffstat (limited to 'activesupport/lib/active_support/deprecation')
-rw-r--r-- | activesupport/lib/active_support/deprecation/behaviors.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/deprecation/behaviors.rb b/activesupport/lib/active_support/deprecation/behaviors.rb index 94f8d7133e..8d92c50679 100644 --- a/activesupport/lib/active_support/deprecation/behaviors.rb +++ b/activesupport/lib/active_support/deprecation/behaviors.rb @@ -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 |