Method: ActionDispatch::ExceptionWrapper#show?
- Defined in:
- actionpack/lib/action_dispatch/middleware/exception_wrapper.rb
#show?(request) ⇒ Boolean
179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# 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 |