rescue_action(exception)
protected
Exception handler called when the
performance of an action raises an exception.
Show source
def rescue_action(exception)
log_error(exception) if logger
erase_results if performed?
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