default annotate_rendered_view_with_filenames to true in development

remove whitespaces

remove whitespaces
This commit is contained in:
Adrian 2023-12-27 11:49:43 +02:00
parent 1a4f40f0f0
commit 475bb4b1ed
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
* Set `config.action_view.annotate_rendered_view_with_filenames` to `true` in the
development environment.
*Adrian Marin*
* Support `BACKTRACE` ENV variable to turn off backtrace cleaning.
Useful for debugging framework code:

View File

@ -78,7 +78,7 @@ Rails.application.configure do
# config.i18n.raise_on_missing_translations = true
# Annotate rendered view with file names.
# config.action_view.annotate_rendered_view_with_filenames = true
config.action_view.annotate_rendered_view_with_filenames = true
<%- unless skip_action_cable? -%>
# Uncomment if you wish to allow Action Cable access from any origin.

View File

@ -143,6 +143,8 @@ module TestHelpers
config.action_controller.allow_forgery_protection = false
RUBY
add_to_env_config :development, "config.action_view.annotate_rendered_view_with_filenames = false"
remove_from_env_config("development", "config.generators.apply_rubocop_autocorrect_after_generate!")
end