Skip to content

Instantly share code, notes, and snippets.

@timruffles
Created March 29, 2012 13:29
Show Gist options
  • Save timruffles/2237443 to your computer and use it in GitHub Desktop.
Save timruffles/2237443 to your computer and use it in GitHub Desktop.
how to selectively ignore rails / activesupport::depreciation messages
ActiveSupport::Deprecation.behavior = lambda do |msg, stack|
unless /LIBRARY_NAME/ =~ msg
ActiveSupport::Deprecation::DEFAULT_BEHAVIORS[:stderr].call(msg,stack) # whichever handlers you want - this is the default
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment