method
add_filter
v3.0.9 -
Show latest stable
- Class:
ActiveSupport::BacktraceCleaner
add_filter(&block)public
Adds a filter from the block provided. Each line in the backtrace will be mapped against this filter.
Example:
# Will turn "/my/rails/root/app/models/person.rb" into "/app/models/person.rb" backtrace_cleaner.add_filter { |line| line.gsub(Rails.root, '') }