Created
May 4, 2012 13:55
-
-
Save jaronson/2594938 to your computer and use it in GitHub Desktop.
Raise deprecation warnings
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
# in config/application.rb | |
if ENV['RAISE_WARNINGS'] | |
ActiveSupport::Deprecation.behavior = Proc.new do |message, backtrace| | |
puts message | |
puts backtrace | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment