method
call
v7.0.0 -
Show latest stable
- Class:
ActionDispatch::ShowExceptions
call(env)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 24
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