instance method
failsafe_response
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18 PrivateSignature
failsafe_response(exception)
No documentation comment.
Parameters
-
exceptionreq
Source
# File actionpack/lib/action_controller/failsafe.rb, line 37
def failsafe_response(exception)
log_failsafe_exception(exception)
[500, {'Content-Type' => 'text/html'}, [failsafe_response_body]]
rescue Exception => failsafe_error # Logger or IO errors
$stderr.puts "Error during failsafe response: #{failsafe_error}"
end
Defined in actionpack/lib/action_controller/failsafe.rb line 37
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Failsafe