Module: Airbrake::Rails::ErrorLookup

Defined in:
lib/airbrake/rails/error_lookup.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Sets up an alias chain to catch exceptions when Rails does



6
7
8
9
10
11
# File 'lib/airbrake/rails/error_lookup.rb', line 6

def self.included(base) #:nodoc:
  if base.method_defined?(:rescue_action_locally)
    base.send(:alias_method, :rescue_action_locally_without_airbrake, :rescue_action_locally)
    base.send(:alias_method, :rescue_action_locally, :rescue_action_locally_with_airbrake)
  end
end