add_filter(&block)
Instance Public methods
Adds a filter from the block provided. Each line in the backtrace will be 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, '') }
Please login to continue.