Module: ActionController::Rescue

Extended by:
ActiveSupport::Concern
Includes:
ActiveSupport::Rescuable
Defined in:
lib/action_controller/metal/rescue.rb

Instance Method Summary collapse

Instance Method Details

#rescue_with_handler(exception) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/action_controller/metal/rescue.rb', line 6

def rescue_with_handler(exception)
  if (exception.respond_to?(:original_exception) &&
      (orig_exception = exception.original_exception) &&
      handler_for_rescue(orig_exception))
    exception = orig_exception
  end
  super(exception)
end