Skip to content

Commit

Permalink
Add a note about the value of action_dispatch.show_exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Dec 21, 2023
1 parent 95a0b09 commit 2739f7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/lib/generators/spree/dummy/templates/rails/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
config.eager_load = false

# Raise exceptions instead of rendering exception templates
config.action_dispatch.show_exceptions = false
config.action_dispatch.show_exceptions = false # Should be :none for Rails 7.1+

# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
Expand Down
2 changes: 1 addition & 1 deletion core/lib/spree/testing_support/dummy_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Application < ::Rails::Application

# Make debugging easier:
config.consider_all_requests_local = true
config.action_dispatch.show_exceptions = false
config.action_dispatch.show_exceptions = false # Should be :none for Rails 7.1+
config.active_support.deprecation = :stderr
config.log_level = :debug

Expand Down

0 comments on commit 2739f7b

Please sign in to comment.