From 2c00f8bcf4b5bbf910ef40d09fd093938cc9ff5f Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 12 Sep 2024 07:56:09 -0700 Subject: [PATCH] Turn on filename annotations for rendered views in development mode This adds comments to the rendered HTML saying which partials and view components were used, similar to what we have in Orangelight. --- config/environments/development.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index a5d297a..b7f7e34 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -45,6 +45,8 @@ # Suppress logger output for asset requests. config.assets.quiet = false + config.action_view.annotate_rendered_view_with_filenames = true + # Raises error for missing translations # config.action_view.raise_on_missing_translations = true end