mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
docs, fix BacktraceCleaner code example. Closes #15911. [ci skip]
This commit is contained in:
parent
fa12d2255f
commit
18def156ba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue