Mercurial > rsstweet
comparison config/environments/development.rb @ 223:ad6264cca788
Update to rails 7
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 15 Jan 2022 02:39:53 +0900 |
parents | 2335107f35d0 |
children | 782fece93768 |
comparison
equal
deleted
inserted
replaced
222:fefe9b0a603d | 223:ad6264cca788 |
---|---|
12 config.eager_load = false | 12 config.eager_load = false |
13 | 13 |
14 # Show full error reports. | 14 # Show full error reports. |
15 config.consider_all_requests_local = true | 15 config.consider_all_requests_local = true |
16 | 16 |
17 # Enable server timing | |
18 config.server_timing = true | |
19 | |
17 # Enable/disable caching. By default caching is disabled. | 20 # Enable/disable caching. By default caching is disabled. |
18 # Run rails dev:cache to toggle caching. | 21 # Run rails dev:cache to toggle caching. |
19 if Rails.root.join('tmp', 'caching-dev.txt').exist? | 22 if Rails.root.join("tmp/caching-dev.txt").exist? |
20 config.action_controller.perform_caching = true | 23 config.action_controller.perform_caching = true |
21 config.action_controller.enable_fragment_cache_logging = true | 24 config.action_controller.enable_fragment_cache_logging = true |
22 | 25 |
23 config.cache_store = :memory_store | 26 config.cache_store = :memory_store |
24 config.public_file_server.headers = { | 27 config.public_file_server.headers = { |
25 'Cache-Control' => "public, max-age=#{2.days.to_i}" | 28 "Cache-Control" => "public, max-age=#{2.days.to_i}" |
26 } | 29 } |
27 else | 30 else |
28 config.action_controller.perform_caching = false | 31 config.action_controller.perform_caching = false |
29 | 32 |
30 config.cache_store = :null_store | 33 config.cache_store = :null_store |
44 # config.i18n.raise_on_missing_translations = true | 47 # config.i18n.raise_on_missing_translations = true |
45 | 48 |
46 # Annotate rendered view with file names. | 49 # Annotate rendered view with file names. |
47 # config.action_view.annotate_rendered_view_with_filenames = true | 50 # config.action_view.annotate_rendered_view_with_filenames = true |
48 | 51 |
49 # Use an evented file watcher to asynchronously detect changes in source code, | |
50 # routes, locales, etc. This feature depends on the listen gem. | |
51 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker | |
52 | |
53 # Uncomment if you wish to allow Action Cable access from any origin. | 52 # Uncomment if you wish to allow Action Cable access from any origin. |
54 # config.action_cable.disable_request_forgery_protection = true | 53 # config.action_cable.disable_request_forgery_protection = true |
55 end | 54 end |