From 0cc75098c68a02a8177b67c2b50e608d372cdad1 Mon Sep 17 00:00:00 2001 From: Takashi Kato Date: Sat, 28 Jan 2023 06:02:50 +0000 Subject: [PATCH] Add template filenames as comments to HTML output development in development and test mode. --- config/environments/development.rb | 3 +++ config/environments/test.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 8963e6ab0..2570fbaf9 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -59,4 +59,7 @@ Rails.application.configure do # Uncomment if you wish to allow Action Cable access from any origin. # config.action_cable.disable_request_forgery_protection = true + + # Annotate rendered view with file names. + config.action_view.annotate_rendered_view_with_filenames = true end diff --git a/config/environments/test.rb b/config/environments/test.rb index 34056df74..737fc40f7 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -71,4 +71,7 @@ Rails.application.configure do # config.action_view.annotate_rendered_view_with_filenames = true config.secret_key_base = 'a secret token for running the tests' + + # Annotate rendered view with file names. + config.action_view.annotate_rendered_view_with_filenames = true end -- 2.30.2