Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 76cd1ca08dc31babd7e9e527a8a9c86321ed905a 1 parent 9fc9e89
Adam Hawkins authored carlosantoniodasilva committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 activesupport/lib/active_support/deprecation/behaviors.rb
5 activesupport/lib/active_support/deprecation/behaviors.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.