instance method clean_frame

Ruby on Rails 7.1.6

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

clean_frame(frame, kind = :silent)

Returns the frame with all filters applied. returns nil if the frame was silenced.

Parameters

frame req
kind opt = :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

Type at least 2 characters to search.

↑↓ navigate · open · esc close