Method: ActiveSupport::BacktraceCleaner#clean_locations

Defined in:
activesupport/lib/active_support/backtrace_cleaner.rb

#clean_locations(locations, kind = :silent) ⇒ Object

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.



67
68
69
# File 'activesupport/lib/active_support/backtrace_cleaner.rb', line 67

def clean_locations(locations, kind = :silent)
  locations.select { |location| clean_frame(location, kind) }
end