instance method
call
Ruby on Rails 6.1.7.10
Since v3.0.20Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 31
def call(env)
request = ActionDispatch::Request.new env
@app.call(env)
rescue Exception => exception
if request.show_exceptions?
render_exception(request, exception)
else
raise exception
end
end
Defined in actionpack/lib/action_dispatch/middleware/show_exceptions.rb line 31
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ShowExceptions