Mercurial > zeropaste
comparison config/environments/development.rb @ 467:fd3078b4d355
Update to latest rails
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 22 Oct 2019 16:17:30 +0900 |
parents | 07d6c6639adf |
children | 88fd5722fcb3 |
comparison
equal
deleted
inserted
replaced
466:722f4eccd370 | 467:fd3078b4d355 |
---|---|
14 | 14 |
15 # Enable/disable caching. By default caching is disabled. | 15 # Enable/disable caching. By default caching is disabled. |
16 # Run rails dev:cache to toggle caching. | 16 # Run rails dev:cache to toggle caching. |
17 if Rails.root.join('tmp', 'caching-dev.txt').exist? | 17 if Rails.root.join('tmp', 'caching-dev.txt').exist? |
18 config.action_controller.perform_caching = true | 18 config.action_controller.perform_caching = true |
19 config.action_controller.enable_fragment_cache_logging = true | |
19 | 20 |
20 config.cache_store = :memory_store | 21 config.cache_store = :memory_store |
21 config.public_file_server.headers = { | 22 config.public_file_server.headers = { |
22 'Cache-Control' => "public, max-age=#{2.days.to_i}" | 23 'Cache-Control' => "public, max-age=#{2.days.to_i}" |
23 } | 24 } |
24 else | 25 else |
25 config.action_controller.perform_caching = false | 26 config.action_controller.perform_caching = false |
26 | 27 |
27 config.cache_store = :null_store | 28 config.cache_store = :null_store |
28 end | 29 end |
29 | |
30 # Store uploaded files on the local file system (see config/storage.yml for options) | |
31 # config.active_storage.service = :local | |
32 | 30 |
33 # Print deprecation notices to the Rails logger. | 31 # Print deprecation notices to the Rails logger. |
34 config.active_support.deprecation = :log | 32 config.active_support.deprecation = :log |
35 | 33 |
36 # Raise an error on page load if there are pending migrations. | 34 # Raise an error on page load if there are pending migrations. |
45 config.assets.debug = true | 43 config.assets.debug = true |
46 | 44 |
47 # Suppress logger output for asset requests. | 45 # Suppress logger output for asset requests. |
48 config.assets.quiet = true | 46 config.assets.quiet = true |
49 | 47 |
50 # Raises error for missing translations | 48 # Raises error for missing translations. |
51 # config.action_view.raise_on_missing_translations = true | 49 # config.action_view.raise_on_missing_translations = true |
52 | 50 |
53 # Use an evented file watcher to asynchronously detect changes in source code, | 51 # Use an evented file watcher to asynchronously detect changes in source code, |
54 # routes, locales, etc. This feature depends on the listen gem. | 52 # routes, locales, etc. This feature depends on the listen gem. |
55 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker | 53 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker |