method
clean_locations
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::BacktraceCleaner
clean_locations(locations, kind = :silent)public
Given an array of Thread::Backtrace::Location objects, returns an array with the clean ones:
clean_locations = backtrace_cleaner.clean_locations(caller_locations)
Filters and silencers receive strings as usual. However, the path attributes of the locations in the returned array are the original, unfiltered ones, since locations are immutable.