Module: NeverForget::ControllerRescue

Defined in:
lib/never_forget/railtie.rb

Instance Method Summary collapse

Instance Method Details

#rescue_with_handler(exception) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/never_forget/railtie.rb', line 18

def rescue_with_handler(exception)
  if super
    # the exception was handled, but we still want to save it
    NeverForget.log(exception, request.env)
    true
  end
end