Skip to content

Instantly share code, notes, and snippets.

@jaronson
Created May 4, 2012 13:55
Show Gist options
  • Save jaronson/2594938 to your computer and use it in GitHub Desktop.
Save jaronson/2594938 to your computer and use it in GitHub Desktop.
Raise deprecation warnings
# 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