Skip to content

Commit

Permalink
Apply Rails/Presence rule in ERB files
Browse files Browse the repository at this point in the history
  • Loading branch information
javierm committed Sep 30, 2020
1 parent 9322844 commit b164efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/legislation/processes/_process.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</div>

<div class="small-12 medium-11 column end">
<%= markdown(process.summary.present? ? process.summary : first_paragraph(process.description)) %>
<%= markdown(process.summary.presence || first_paragraph(process.description)) %>
</div>
</div>

Expand Down

0 comments on commit b164efa

Please sign in to comment.