mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
Merge pull request #5599 from etiennebarrie/rails-edge-deprecations
Fix Rails main deprecations
This commit is contained in:
committed by
Carlos Antonio da Silva
parent
a7d64ae313
commit
13cb6e269d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user