From 56c9be11ad1cd75f9d0114947cbad36ad2b5901e Mon Sep 17 00:00:00 2001 From: Eugene Kenny Date: Mon, 2 Nov 2020 19:51:58 +0000 Subject: [PATCH] Tidy up comments in environment configuration files [ci skip] https://guides.rubyonrails.org/api_documentation_guidelines.html#wording --- .../app/templates/config/environments/development.rb.tt | 8 ++++---- .../app/templates/config/environments/production.rb.tt | 4 ++-- .../rails/app/templates/config/environments/test.rb.tt | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt index 5b97c3b95a..974f2c9209 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt @@ -47,10 +47,10 @@ Rails.application.configure do # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log - # Raise exceptions for disallowed deprecations + # Raise exceptions for disallowed deprecations. config.active_support.disallowed_deprecation = :raise - # Tell ActiveSupport which deprecating messages to disallow + # Tell Active Support which deprecation messages to disallow. config.active_support.disallowed_deprecation_warnings = [] <%- unless options.skip_active_record? -%> @@ -74,13 +74,13 @@ Rails.application.configure do # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true - # Annotate rendered view with file names + # Annotate rendered view with file names. # config.action_view.annotate_rendered_view_with_filenames = true # Use an evented file watcher to asynchronously detect changes in source code, # routes, locales, etc. This feature depends on the listen gem. <%= '# ' unless depend_on_listen? %>config.file_watcher = ActiveSupport::EventedFileUpdateChecker - # Uncomment if you wish to allow Action Cable access from any origin + # Uncomment if you wish to allow Action Cable access from any origin. # config.action_cable.disable_request_forgery_protection = true end diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt index fddcb02021..8a0de702c3 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt @@ -87,10 +87,10 @@ Rails.application.configure do # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify - # Log disallowed deprecations + # Log disallowed deprecations. config.active_support.disallowed_deprecation = :log - # Tell ActiveSupport which deprecating messages to disallow + # Tell Active Support which deprecation messages to disallow. config.active_support.disallowed_deprecation_warnings = [] # Use default logging formatter so that PID and timestamp are not suppressed. diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt index 43aff9c405..13f6eb1e1e 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt @@ -55,15 +55,15 @@ Rails.application.configure do # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr - # Raise exceptions for disallowed deprecations + # Raise exceptions for disallowed deprecations. config.active_support.disallowed_deprecation = :raise - # Tell ActiveSupport which deprecating messages to disallow + # Tell Active Support which deprecation messages to disallow. config.active_support.disallowed_deprecation_warnings = [] # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true - # Annotate rendered view with file names + # Annotate rendered view with file names. # config.action_view.annotate_rendered_view_with_filenames = true end