Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rails 6.0 incompatible: annotate_rendered_view_with_filenames #129

@D-system

Description

@D-system

The method annotate_rendered_view_with_filenames is Rails 6.1+ only.

BetterHtml.config.annotate_rendered_view_with_filenames = ActionView::Base.annotate_rendered_view_with_filenames

I found this issue while running the test for maintenance_tasks https://github.com/Shopify/maintenance_tasks/actions/runs/8289887525/job/22695983684?pr=991

rails aborted!
NoMethodError: undefined method `annotate_rendered_view_with_filenames' for ActionView::Base:Class
/home/runner/work/maintenance_tasks/maintenance_tasks/vendor/bundle/ruby/3.0.0/gems/better_html-2.1.0/lib/better_html/railtie.rb:11:in `block (2 levels) in <class:Railtie>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions