Merge pull request #44291 from lewispb/fix-backtrace-cleaner-example

Fix backtrace cleaner example [ci-skip]
This commit is contained in:
Jonathan Hefner 2022-01-30 11:43:15 -06:00 committed by GitHub
commit abde74c118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ module ActiveSupport
# mapped against this filter.
#
# # Will turn "/my/rails/root/app/models/person.rb" into "/app/models/person.rb"
# backtrace_cleaner.add_filter { |line| line.gsub(Rails.root, '') }
# backtrace_cleaner.add_filter { |line| line.gsub(Rails.root.to_s, '') }
def add_filter(&block)
@filters << block
end