Skip to content

Instantly share code, notes, and snippets.

View ktopping's full-sized avatar

Kieran Topping ktopping

  • Unbound, and self
  • Dublin, Ireland
View GitHub Profile
@ktopping
ktopping / ignore_depreciations.rb
Created October 23, 2012 15:55 — forked from timruffles/ignore_depreciations.rb
how to selectively ignore rails / activesupport::depreciation messages
if Rails.env.production?
# silence the deprecation warnings on Heroku
# Thanks to: https://gist.github.com/2237443
ActiveSupport::Deprecation.behavior = lambda do |msg, stack|
unless /vendor\/plugins/ =~ msg
ActiveSupport::Deprecation::DEFAULT_BEHAVIORS[:stderr].call(msg,stack) # whichever handlers you want - this is the default
end
end
end