fix(haml-lint): syntax error with ERB in haml scaffold file

This commit is contained in:
Colin Darie 2024-02-05 13:01:14 +01:00
parent f112569192
commit 1f6bdc8286
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -1,10 +1,9 @@
= simple_form_for(@<%= singular_table_name %>) do |f|
= simple_form_for(@#{singular_table_name}) do |f|
= f.error_notification
.form-inputs
<%- attributes.each do |attribute| -%>
= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
<%- end -%>
- attributes.each do |attribute|
= f.send(attribute.reference? ? :association : :input, attribute.name)
.form-actions
= f.button :submit