Skip to content

Rails 7.1 strict locals? #958

@ibrahima

Description

@ibrahima

Hi! I was trying to use Rails 7.1's strict locals feature, but it didn't seem to work with the / comment delimiter. Do y'all have any ideas on whether it should work with Slim, or if something needs to be done to add support for it to Slim? Thanks!

Ahh, looks like it looks for the string # locals: specifically, so I found that if you write your comment like

/ # locals: (foo:)

it works!

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