diff options
author | Doug Alcorn <dougalcorn@gmail.com> | 2010-03-27 12:47:39 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-10 14:06:10 +0200 |
commit | dc974306301809f4e184f518261f5baae2c909eb (patch) | |
tree | 7ff4501595b198635dd450567dc462a5f4b5b2ba /activesupport/lib/active_support/backtrace_cleaner.rb | |
parent | f46dc9b6b706d8fbbb37d9d6374e671a633bff9f (diff) | |
download | rails-dc974306301809f4e184f518261f5baae2c909eb.tar.gz rails-dc974306301809f4e184f518261f5baae2c909eb.tar.bz2 rails-dc974306301809f4e184f518261f5baae2c909eb.zip |
ActiveSupport::BacktraceCleaner#remove_filters! allows for completely untouched backtrace [#4079 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support/backtrace_cleaner.rb')
-rw-r--r-- | activesupport/lib/active_support/backtrace_cleaner.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/backtrace_cleaner.rb b/activesupport/lib/active_support/backtrace_cleaner.rb index 6fab565646..8465bc1e10 100644 --- a/activesupport/lib/active_support/backtrace_cleaner.rb +++ b/activesupport/lib/active_support/backtrace_cleaner.rb @@ -4,7 +4,9 @@ module ActiveSupport # context, so only the relevant lines are included. # # If you need to reconfigure an existing BacktraceCleaner, like the one in Rails, to show as much as possible, you can always - # call BacktraceCleaner#remove_silencers! + # call BacktraceCleaner#remove_silencers! Also, if you need to reconfigure an existing BacktraceCleaner so that it does not + # filter or modify the paths of any lines of the backtrace, you can call BacktraceCleaner#remove_filters! These two methods + # will give you a completely untouched backtrace. # # Example: # @@ -60,6 +62,10 @@ module ActiveSupport @silencers = [] end + def remove_filters! + @filters = [] + end + private def filter(backtrace) @filters.each do |f| |