method
call
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::ShowExceptions
call(env)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 29
def call(env)
@app.call(env)
rescue Exception => exception
if env['action_dispatch.show_exceptions'] == false
raise exception
else
render_exception(env, exception)
end
end