Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/errorapp_notifier/notifiers/rails.rb

Instance Method Summary collapse

Instance Method Details

#rescue_action_with_errorapp(exception) ⇒ Object Also known as: rescue_action



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/errorapp_notifier/notifiers/rails.rb', line 11

def rescue_action_with_errorapp(exception)
  unless exception_handled_by_rescue_from?(exception)
    ErrorappNotifier::Notify.notify_with_controller(
      exception,
      self,
      request
    )
    ErrorappNotifier.context.clear!
  end
  rescue_action_without_errorapp exception
end