Module: ActionController::Rescue::ClassMethods

Defined in:
lib/action_controller/metal/rescue.rb

Instance Method Summary collapse

Instance Method Details

#handler_for_rescue(exception) ⇒ Object

:nodoc:



17
18
19
20
21
22
# File 'lib/action_controller/metal/rescue.rb', line 17

def handler_for_rescue(exception, ...) # :nodoc:
  if handler = super
    ActiveSupport::Notifications.instrument("rescue_from_callback.action_controller", exception: exception)
    handler
  end
end