Skip to content

Commit 51c9d59

Browse files
add trailing question mark and remove empty newline on generated partial
1 parent f30b4ad commit 51c9d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<%% <%= singular_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %>
99
<div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div>
1010
<%% end %>
11-
<% elsif attribute.type == :boolean %>
12-
<%%= <%= singular_name %>.<%= attribute.column_name %> ? "Yes" : "No" %>
11+
<% elsif attribute.type == :boolean -%>
12+
<%%= <%= singular_name %>.<%= attribute.column_name %>? ? "Yes" : "No" %>
1313
<% else -%>
1414
<%%= <%= singular_name %>.<%= attribute.column_name %> %>
1515
<% end -%>

0 commit comments

Comments
 (0)