diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-06-25 19:47:10 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-06-25 19:47:29 +0200 |
commit | 18def156ba01f33255e09f18975c26b650975262 (patch) | |
tree | 9581194e61326187639d17ab47900db1696c5bf3 /activesupport | |
parent | fa12d2255fc12dc9ef4eaac8acbac4b42cd5b0cd (diff) | |
download | rails-18def156ba01f33255e09f18975c26b650975262.tar.gz rails-18def156ba01f33255e09f18975c26b650975262.tar.bz2 rails-18def156ba01f33255e09f18975c26b650975262.zip |
docs, fix BacktraceCleaner code example. Closes #15911. [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/backtrace_cleaner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/backtrace_cleaner.rb b/activesupport/lib/active_support/backtrace_cleaner.rb index 1fec1bea0d..d06f22ad5c 100644 --- a/activesupport/lib/active_support/backtrace_cleaner.rb +++ b/activesupport/lib/active_support/backtrace_cleaner.rb @@ -13,7 +13,7 @@ module ActiveSupport # can focus on the rest. # # bc = BacktraceCleaner.new - # bc.add_filter { |line| line.gsub(Rails.root, '') } # strip the Rails.root prefix + # bc.add_filter { |line| line.gsub(Rails.root.to_s, '') } # strip the Rails.root prefix # bc.add_silencer { |line| line =~ /mongrel|rubygems/ } # skip any lines from mongrel or rubygems # bc.clean(exception.backtrace) # perform the cleanup # |