Mercurial > rsstweet
comparison config/environments/development.rb @ 254:89f6c0016bab default tip
Update to latest rails
author | nanaya <me@nanaya.net> |
---|---|
date | Tue, 03 Sep 2024 19:21:25 +0900 |
parents | 782fece93768 |
children |
comparison
equal
deleted
inserted
replaced
253:d726e8b92dd1 | 254:89f6c0016bab |
---|---|
4 # Settings specified here will take precedence over those in config/application.rb. | 4 # Settings specified here will take precedence over those in config/application.rb. |
5 | 5 |
6 # In the development environment your application's code is reloaded any time | 6 # In the development environment your application's code is reloaded any time |
7 # it changes. This slows down response time but is perfect for development | 7 # it changes. This slows down response time but is perfect for development |
8 # since you don't have to restart the web server when you make code changes. | 8 # since you don't have to restart the web server when you make code changes. |
9 config.cache_classes = false | 9 config.enable_reloading = true |
10 | 10 |
11 # Do not eager load code on boot. | 11 # Do not eager load code on boot. |
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 | 17 # Enable server timing. |
18 config.server_timing = true | 18 config.server_timing = true |
19 | 19 |
20 # Enable/disable caching. By default caching is disabled. | 20 # Enable/disable caching. By default caching is disabled. |
21 # Run rails dev:cache to toggle caching. | 21 # Run rails dev:cache to toggle caching. |
22 #if Rails.root.join("tmp/caching-dev.txt").exist? | 22 if Rails.root.join("tmp/caching-dev.txt").exist? |
23 # config.action_controller.perform_caching = true | 23 config.action_controller.perform_caching = true |
24 # config.action_controller.enable_fragment_cache_logging = true | 24 config.action_controller.enable_fragment_cache_logging = true |
25 | 25 |
26 # config.cache_store = :memory_store | 26 config.cache_store = :memory_store |
27 # config.public_file_server.headers = { | 27 config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" } |
28 # "Cache-Control" => "public, max-age=#{2.days.to_i}" | 28 else |
29 # } | 29 config.action_controller.perform_caching = false |
30 #else | |
31 # config.action_controller.perform_caching = false | |
32 | 30 |
33 # config.cache_store = :null_store | 31 config.cache_store = :null_store |
34 #end | 32 end |
35 | 33 |
36 # Print deprecation notices to the Rails logger. | 34 # Print deprecation notices to the Rails logger. |
37 config.active_support.deprecation = :log | 35 config.active_support.deprecation = :log |
38 | 36 |
39 # Raise exceptions for disallowed deprecations. | 37 # Raise exceptions for disallowed deprecations. |
40 config.active_support.disallowed_deprecation = :raise | 38 config.active_support.disallowed_deprecation = :raise |
41 | 39 |
42 # Tell Active Support which deprecation messages to disallow. | 40 # Tell Active Support which deprecation messages to disallow. |
43 config.active_support.disallowed_deprecation_warnings = [] | 41 config.active_support.disallowed_deprecation_warnings = [] |
44 | 42 |
45 | |
46 # Raises error for missing translations. | 43 # Raises error for missing translations. |
47 # config.i18n.raise_on_missing_translations = true | 44 # config.i18n.raise_on_missing_translations = true |
48 | 45 |
49 # Annotate rendered view with file names. | 46 # Annotate rendered view with file names. |
50 # config.action_view.annotate_rendered_view_with_filenames = true | 47 config.action_view.annotate_rendered_view_with_filenames = true |
51 | 48 |
52 # Uncomment if you wish to allow Action Cable access from any origin. | 49 # Raise error when a before_action's only/except options reference missing actions. |
53 # config.action_cable.disable_request_forgery_protection = true | 50 config.action_controller.raise_on_missing_callback_actions = true |
54 end | 51 end |