Permalink
Browse files

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

  • Loading branch information...
1 parent 9fc9e89 commit 76cd1ca08dc31babd7e9e527a8a9c86321ed905a Adam Hawkins committed with carlosantoniodasilva Apr 15, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 activesupport/lib/active_support/deprecation/behaviors.rb
@@ -41,8 +41,9 @@ def behavior=(behavior)
},
: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

0 comments on commit 76cd1ca

Please sign in to comment.