Skip to content

Commit

Permalink
annotated views comes after 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcharlton committed Nov 21, 2024
1 parent 0e0b1e5 commit 363e1ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/example_app/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 363e1ea

Please sign in to comment.