instance method
show?
Ruby on Rails 8.0.4
Since v7.1.6Signature
show?(request)
No documentation comment.
Parameters
-
requestreq
Source
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 179
def show?(request)
# We're treating `nil` as "unset", and we want the default setting to be `:all`.
# This logic should be extracted to `env_config` and calculated once.
config = request.get_header("action_dispatch.show_exceptions")
case config
when :none
false
when :rescuable
rescue_response?
else
true
end
end
Defined in actionpack/lib/action_dispatch/middleware/exception_wrapper.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ExceptionWrapper