instance method
rescue_action_without_handler
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
rescue_action_without_handler(exception)
No documentation comment.
Parameters
-
exceptionreq
Source
# File actionpack/lib/action_controller/rescue.rb, line 141
def rescue_action_without_handler(exception)
log_error(exception) if logger
erase_results if performed?
# Let the exception alter the response if it wants.
# For example, MethodNotAllowed sets the Allow header.
if exception.respond_to?(:handle_response!)
exception.handle_response!(response)
end
if consider_all_requests_local || local_request?
rescue_action_locally(exception)
else
rescue_action_in_public(exception)
end
end
Defined in actionpack/lib/action_controller/rescue.rb line 141
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Rescue