From 35218705aed9900c73da3054807d68735f3787fb Mon Sep 17 00:00:00 2001 From: Nick Charlton Date: Tue, 19 Nov 2024 16:39:14 +0000 Subject: [PATCH] annotated views comes after 6.1 --- spec/example_app/config/environments/development.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/example_app/config/environments/development.rb b/spec/example_app/config/environments/development.rb index f47b9ef38..31644dbb9 100644 --- a/spec/example_app/config/environments/development.rb +++ b/spec/example_app/config/environments/development.rb @@ -63,7 +63,9 @@ end # Annotate rendered view with file names. - config.action_view.annotate_rendered_view_with_filenames = true + if Rails.gem_version >= Gem::Version.new("6.1") + config.action_view.annotate_rendered_view_with_filenames = true + end # Raise error when a before_action's only/except options reference missing # actions.