Method: ActiveSupport::BacktraceCleaner#clean_frame
- Defined in:
- activesupport/lib/active_support/backtrace_cleaner.rb
#clean_frame(frame, kind = :silent) ⇒ Object
Returns the frame with all filters applied. returns nil if the frame was silenced.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'activesupport/lib/active_support/backtrace_cleaner.rb', line 61 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 |