Method: ActionDispatch::ShowExceptions#call
- Defined in:
- actionpack/lib/action_dispatch/middleware/show_exceptions.rb
#call(env) ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# 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 |