Class: ActionController::Base

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

Instance Method Summary collapse

Instance Method Details

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



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

def rescue_action_with_loggr(exception)
  unless exception_handled_by_rescue_from?(exception)
    Loggr::Catcher.handle_with_controller(exception, self, request)
    Loggr.context.clear!
  end
  rescue_action_without_loggr exception
end