We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff0ef93 commit 869c7bfCopy full SHA for 869c7bf
activesupport/lib/active_support/backtrace_cleaner.rb
@@ -18,7 +18,7 @@ module ActiveSupport
18
#
19
# bc = ActiveSupport::BacktraceCleaner.new
20
# root = "#{Rails.root}/"
21
- # bc.add_filter { |line| line.start_with?(root) ? line.from(root.size) : line } # strip the Rails.root prefix
+ # bc.add_filter { |line| line.delete_prefix(root) } # strip the Rails.root prefix
22
# bc.add_silencer { |line| /puma|rubygems/.match?(line) } # skip any lines from puma or rubygems
23
# bc.clean(exception.backtrace) # perform the cleanup
24
0 commit comments