method

clean_locations

rails latest stable - Class: ActiveSupport::BacktraceCleaner

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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.