Skip to content

Instantly share code, notes, and snippets.

@bespokoid
Created April 26, 2012 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bespokoid/2498433 to your computer and use it in GitHub Desktop.
Save bespokoid/2498433 to your computer and use it in GitHub Desktop.
Controll deprecation warnings output in Rails
# 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