Methods
Attributes
| [RW] | closed |
Class Public methods
new(detailed = false)
Link
Instance Public methods
call(env)
Link
# File actionpack/test/dispatch/debug_exceptions_test.rb, line 20 def call(env) env['action_dispatch.show_detailed_exceptions'] = @detailed req = ActionDispatch::Request.new(env) case req.path when "/pass" [404, { "X-Cascade" => "pass" }, self] when "/not_found" raise AbstractController::ActionNotFound when "/runtime_error" raise RuntimeError when "/method_not_allowed" raise ActionController::MethodNotAllowed when "/not_implemented" raise ActionController::NotImplemented when "/unprocessable_entity" raise ActionController::InvalidAuthenticityToken when "/not_found_original_exception" raise ActionView::Template::Error.new('template', {}, AbstractController::ActionNotFound.new) else raise "puke!" end end
close()
Link