Use show_exceptions = :none in Rails 7.1

DEPRECATION WARNING: Setting action_dispatch.show_exceptions to false is
deprecated. Set to :none instead.
This commit is contained in:
Étienne Barrié
2023-06-08 11:35:45 +02:00
parent 4b72064bfc
commit c809adeeed

View File

@@ -32,7 +32,11 @@ RailsApp::Application.configure do
config.action_controller.perform_caching = false
# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
if Devise::Test.rails71_and_up?
config.action_dispatch.show_exceptions = :none
else
config.action_dispatch.show_exceptions = false
end
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false