instance method
clean_frame
Ruby on Rails 7.1.6
Since v7.1.6Signature
clean_frame(frame, kind = :silent)
Returns the frame with all filters applied. returns nil if the frame was silenced.
Parameters
-
framereq -
kindopt = :silent
Source
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 60
def clean_frame(frame, kind = :silent)
frame = frame.to_s
@filters.each do |f|
frame = f.call(frame.to_s)
end
case kind
when :silent
frame unless @silencers.any? { |s| s.call(frame) }
when :noise
frame if @silencers.any? { |s| s.call(frame) }
else
frame
end
end
Defined in activesupport/lib/active_support/backtrace_cleaner.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::BacktraceCleaner