instance method
clean_locations
Ruby on Rails 8.1.2
Since v8.1.2Signature
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
-
locationsreq -
kindopt = :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