Created
October 14, 2014 15:03
-
-
Save mgates/a72a0a01915f122de3c8 to your computer and use it in GitHub Desktop.
If you need to change the backtrace silencers...
This file contains hidden or 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
| You can put this in an initializer | |
| bc = Rails.backtrace_cleaner | |
| bc.remove_silencers! | |
| bc. add_silencer { |line| (line !~ bc.class::APP_DIRS_PATTERN && line !~ %r[^/?(vendor/gems/internal_gem)])} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment