Created
April 26, 2012 10:03
-
-
Save bespokoid/2498433 to your computer and use it in GitHub Desktop.
Controll deprecation warnings output in Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple turn it off | |
ActiveSupport::Deprecation.silenced = true | |
# Or add custom handler | |
# ActiveSupport::Deprecation.behavior = Proc.new { |msg, stack| MyLogger.warn(msg) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment