Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/exceptional/integration/rails.rb

Instance Method Summary collapse

Instance Method Details

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



9
10
11
12
13
14
15
# File 'lib/exceptional/integration/rails.rb', line 9

def rescue_action_with_exceptional(exception)
  unless exception_handled_by_rescue_from?(exception)
    Exceptional::Catcher.handle_with_controller(exception, self, request)
    Exceptional.context.clear!
  end
  rescue_action_without_exceptional exception
end