Skip to content

Commit

Permalink
add trailing question mark and remove empty newline on generated partial
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciomacadden committed Jan 23, 2025
1 parent f30b4ad commit 51c9d59
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<%% <%= singular_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %>
<div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div>
<%% end %>
<% elsif attribute.type == :boolean %>
<%%= <%= singular_name %>.<%= attribute.column_name %> ? "Yes" : "No" %>
<% elsif attribute.type == :boolean -%>
<%%= <%= singular_name %>.<%= attribute.column_name %>? ? "Yes" : "No" %>
<% else -%>
<%%= <%= singular_name %>.<%= attribute.column_name %> %>
<% end -%>
Expand Down

0 comments on commit 51c9d59

Please sign in to comment.