Mercurial > zeropaste
comparison config/environments/development.rb @ 485:6cac8fcf8164
Update to rails 7 (and ruby 3.1)
| author | nanaya <me@nanaya.pro> | 
|---|---|
| date | Sat, 15 Jan 2022 02:07:02 +0900 | 
| parents | 88fd5722fcb3 | 
| children | 92929378413e | 
   comparison
  equal
  deleted
  inserted
  replaced
| 484:84ca55a0568e | 485:6cac8fcf8164 | 
|---|---|
| 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 | 
| 43 config.active_record.migration_error = :page_load | 46 config.active_record.migration_error = :page_load | 
| 44 | 47 | 
| 45 # Highlight code that triggered database queries in logs. | 48 # Highlight code that triggered database queries in logs. | 
| 46 config.active_record.verbose_query_logs = true | 49 config.active_record.verbose_query_logs = true | 
| 47 | 50 | 
| 48 # Debug mode disables concatenation and preprocessing of assets. | |
| 49 # This option may cause significant delays in view rendering with a large | |
| 50 # number of complex assets. | |
| 51 config.assets.debug = true | |
| 52 | |
| 53 # Suppress logger output for asset requests. | 51 # Suppress logger output for asset requests. | 
| 54 config.assets.quiet = true | 52 config.assets.quiet = true | 
| 55 | 53 | 
| 56 # Raises error for missing translations. | 54 # Raises error for missing translations. | 
| 57 # config.i18n.raise_on_missing_translations = true | 55 # config.i18n.raise_on_missing_translations = true | 
| 58 | 56 | 
| 59 # Annotate rendered view with file names. | 57 # Annotate rendered view with file names. | 
| 60 # config.action_view.annotate_rendered_view_with_filenames = true | 58 # config.action_view.annotate_rendered_view_with_filenames = true | 
| 61 | 59 | 
| 62 # Use an evented file watcher to asynchronously detect changes in source code, | |
| 63 # routes, locales, etc. This feature depends on the listen gem. | |
| 64 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker | |
| 65 | |
| 66 # Uncomment if you wish to allow Action Cable access from any origin. | 60 # Uncomment if you wish to allow Action Cable access from any origin. | 
| 67 # config.action_cable.disable_request_forgery_protection = true | 61 # config.action_cable.disable_request_forgery_protection = true | 
| 68 end | 62 end | 
