instance method show?

Ruby on Rails 8.1.2

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

show?(request)

No documentation comment.

Parameters

request req
Source
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 185
    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 185 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::ExceptionWrapper

Type at least 2 characters to search.

↑↓ navigate · open · esc close