Flowdock
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, '') }
Show source
Register or log in to add new notes.