instance method
call
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File actionpack/lib/action_controller/failsafe.rb, line 25
def call(env)
@app.call(env)
rescue Exception => exception
# Reraise exception in test environment
if defined?(Rails) && Rails.env.test?
raise exception
else
failsafe_response(exception)
end
end
Defined in actionpack/lib/action_controller/failsafe.rb line 25
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Failsafe