Class: Airbrake::Rails::BacktraceCleaner

Inherits:
Object
  • Object
show all
Defined in:
lib/airbrake/rails/backtrace_cleaner.rb

Overview

BacktraceCleaner is a wrapper around Rails.backtrace_cleaner.

Constant Summary collapse

AIRBRAKE_FRAME_PATTERN =

Returns:

  • (Regexp)
%r{/airbrake/lib/airbrake/}.freeze

Class Method Summary collapse

Class Method Details

.clean(backtrace) ⇒ Object



10
11
12
# File 'lib/airbrake/rails/backtrace_cleaner.rb', line 10

def self.clean(backtrace)
  ::Rails.backtrace_cleaner.clean(backtrace).first(1)
end