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
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 |