aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation/behaviors.rb
diff options
context:
space:
mode:
authorAdam Hawkins <me@broadcastingadam.com>2012-04-15 16:21:06 +0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-04-28 13:40:30 -0300
commit76cd1ca08dc31babd7e9e527a8a9c86321ed905a (patch)
tree217571f4cc337bca04949ae5682823e5acef5cb4 /activesupport/lib/active_support/deprecation/behaviors.rb
parent9fc9e894771d1915fe3e565305424ed9ca537b79 (diff)
downloadrails-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/behaviors.rb')
-rw-r--r--activesupport/lib/active_support/deprecation/behaviors.rb5
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