File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
test/dummy/config/environments Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 23
23
( config . public_file_server . headers = { 'Cache-Control' => 'public, max-age=3600' } ) :
24
24
( config . static_cache_control = 'public, max-age=3600' )
25
25
26
- if Rails ::VERSION ::MAJOR > 6 && ENV [ 'DEVISE_TOKEN_AUTH_ORM' ] != 'mongoid'
26
+ if Rails ::VERSION ::MAJOR < 7 && ENV [ 'DEVISE_TOKEN_AUTH_ORM' ] != 'mongoid'
27
27
config . active_record . legacy_connection_handling = false
28
28
end
29
29
32
32
config . action_controller . perform_caching = false
33
33
34
34
# Raise exceptions instead of rendering exception templates.
35
- config . action_dispatch . show_exceptions = false
35
+ if Rails ::VERSION ::MAJOR >= 7 && Rails ::VERSION ::MINOR > 0
36
+ config . action_dispatch . show_exceptions = :none
37
+ else
38
+ config . action_dispatch . show_exceptions = false
39
+ end
36
40
37
41
# Disable request forgery protection in test environment.
38
42
config . action_controller . allow_forgery_protection = false
You can’t perform that action at this time.
0 commit comments