Mercurial > zeropaste
comparison config/environments/development.rb @ 481:88fd5722fcb3
Update defaults
| author | nanaya <me@nanaya.pro> |
|---|---|
| date | Sun, 28 Nov 2021 19:45:05 +0900 |
| parents | fd3078b4d355 |
| children | 6cac8fcf8164 |
comparison
equal
deleted
inserted
replaced
| 480:2672acc670d2 | 481:88fd5722fcb3 |
|---|---|
| 1 require "active_support/core_ext/integer/time" | |
| 2 | |
| 1 Rails.application.configure do | 3 Rails.application.configure do |
| 2 # 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. |
| 3 | 5 |
| 4 # In the development environment your application's code is reloaded on | 6 # In the development environment your application's code is reloaded any time |
| 5 # every request. This slows down response time but is perfect for development | 7 # it changes. This slows down response time but is perfect for development |
| 6 # 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. |
| 7 config.cache_classes = false | 9 config.cache_classes = false |
| 8 | 10 |
| 9 # Do not eager load code on boot. | 11 # Do not eager load code on boot. |
| 10 config.eager_load = false | 12 config.eager_load = false |
| 29 end | 31 end |
| 30 | 32 |
| 31 # Print deprecation notices to the Rails logger. | 33 # Print deprecation notices to the Rails logger. |
| 32 config.active_support.deprecation = :log | 34 config.active_support.deprecation = :log |
| 33 | 35 |
| 36 # Raise exceptions for disallowed deprecations. | |
| 37 config.active_support.disallowed_deprecation = :raise | |
| 38 | |
| 39 # Tell Active Support which deprecation messages to disallow. | |
| 40 config.active_support.disallowed_deprecation_warnings = [] | |
| 41 | |
| 34 # Raise an error on page load if there are pending migrations. | 42 # Raise an error on page load if there are pending migrations. |
| 35 config.active_record.migration_error = :page_load | 43 config.active_record.migration_error = :page_load |
| 36 | 44 |
| 37 # Highlight code that triggered database queries in logs. | 45 # Highlight code that triggered database queries in logs. |
| 38 config.active_record.verbose_query_logs = true | 46 config.active_record.verbose_query_logs = true |
| 44 | 52 |
| 45 # Suppress logger output for asset requests. | 53 # Suppress logger output for asset requests. |
| 46 config.assets.quiet = true | 54 config.assets.quiet = true |
| 47 | 55 |
| 48 # Raises error for missing translations. | 56 # Raises error for missing translations. |
| 49 # config.action_view.raise_on_missing_translations = true | 57 # config.i18n.raise_on_missing_translations = true |
| 58 | |
| 59 # Annotate rendered view with file names. | |
| 60 # config.action_view.annotate_rendered_view_with_filenames = true | |
| 50 | 61 |
| 51 # Use an evented file watcher to asynchronously detect changes in source code, | 62 # Use an evented file watcher to asynchronously detect changes in source code, |
| 52 # routes, locales, etc. This feature depends on the listen gem. | 63 # routes, locales, etc. This feature depends on the listen gem. |
| 53 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker | 64 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker |
| 65 | |
| 66 # Uncomment if you wish to allow Action Cable access from any origin. | |
| 67 # config.action_cable.disable_request_forgery_protection = true | |
| 54 end | 68 end |
