Skip to content

:identifiers in Rails 6 seem to fall into the wrong subscriber. #73

Description

@ragaskar

I have a bit of code that is render-ing a template like so:

render file: Rails.root.join('public', 'webpack_assets', 'index.html'), layout: false

This was previously being tested (with Rails 5) with an

assert_template(file: Rails.root.join('public', 'webpack_assets', 'index.html'))

This no longer works in Rails 6.1.1.4 (the assert_template actual is '[]' instead of the value of Rails.root.join('public', 'webpack_assets', 'index.html')). It seems like the payload containing the :identifier key falls into the subscription for render_template.action_view where it appears to be expected in the !render_template.action_view subscription.

Hopefully this makes sense, sorry for not providing more details, haven't gotten a chance to dig in more yet. If I get a moment I'll validate the change in Rails and propose a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions