comparison config/environments/test.rb @ 459:07d6c6639adf

Upgrade to rails 5.2. RIP code style.
author nanaya <me@nanaya.pro>
date Sat, 14 Apr 2018 04:19:52 +0900
parents 68eb23b52864
children 722f4eccd370
comparison
equal deleted inserted replaced
458:1c6a056269e6 459:07d6c6639adf
13 config.eager_load = false 13 config.eager_load = false
14 14
15 # Configure public file server for tests with Cache-Control for performance. 15 # Configure public file server for tests with Cache-Control for performance.
16 config.public_file_server.enabled = true 16 config.public_file_server.enabled = true
17 config.public_file_server.headers = { 17 config.public_file_server.headers = {
18 "Cache-Control" => "public, max-age=3600" 18 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
19 } 19 }
20 20
21 # Show full error reports and disable caching. 21 # Show full error reports and disable caching.
22 config.consider_all_requests_local = true 22 config.consider_all_requests_local = true
23 config.action_controller.perform_caching = false 23 config.action_controller.perform_caching = false
25 # Raise exceptions instead of rendering exception templates. 25 # Raise exceptions instead of rendering exception templates.
26 config.action_dispatch.show_exceptions = false 26 config.action_dispatch.show_exceptions = false
27 27
28 # Disable request forgery protection in test environment. 28 # Disable request forgery protection in test environment.
29 config.action_controller.allow_forgery_protection = false 29 config.action_controller.allow_forgery_protection = false
30 # config.action_mailer.perform_caching = false
31 30
32 # Tell Action Mailer not to deliver emails to the real world. 31 # Store uploaded files on the local file system in a temporary directory
33 # The :test delivery method accumulates sent emails in the 32 config.active_storage.service = :test
34 # ActionMailer::Base.deliveries array.
35 # config.action_mailer.delivery_method = :test
36 33
37 # Print deprecation notices to the stderr. 34 # Print deprecation notices to the stderr.
38 config.active_support.deprecation = :stderr 35 config.active_support.deprecation = :stderr
39 36
40 # Raises error for missing translations 37 # Raises error for missing translations