Module: ActionController::Rescue

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

Instance Method Summary (collapse)

Methods included from ActiveSupport::Concern

append_features, extended, included

Methods included from ActiveSupport::Rescuable

#handler_for_rescue

Instance Method Details

- (Object) rescue_with_handler(exception)



6
7
8
9
10
11
12
13
# File 'actionpack/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