instance method clean_locations

Ruby on Rails 8.1.2

Since v8.1.2

Signature

clean_locations(locations, kind = :silent)

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.

Parameters

locations req
kind opt = :silent
Source
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 67
    def clean_locations(locations, kind = :silent)
      locations.select { |location| clean_frame(location, kind) }
    end

Defined in activesupport/lib/active_support/backtrace_cleaner.rb line 67 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::BacktraceCleaner

Type at least 2 characters to search.

↑↓ navigate · open · esc close