Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 76cd1ca08dc31babd7e9e527a8a9c86321ed905a 1 parent 9fc9e89
authored April 15, 2012 carlosantoniodasilva committed April 28, 2012
5  activesupport/lib/active_support/deprecation/behaviors.rb
@@ -41,8 +41,9 @@ def behavior=(behavior)
41 41
        },
42 42
        :notify => Proc.new { |message, callstack|
43 43
           ActiveSupport::Notifications.instrument("deprecation.rails",
44  
-            :message => message, :callstack => callstack)
45  
-       }
  44
+          :message => message, :callstack => callstack)
  45
+       },
  46
+       :silence => Proc.new { |message, callstack| }
46 47
     }
47 48
   end
48 49
 end

0 notes on commit 76cd1ca

Please sign in to comment.
Something went wrong with that request. Please try again.