Skip to content

Commit

Permalink
Use simplier syntax to render crops collection
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Jul 18, 2018
1 parent 9be1600 commit 8f1bc27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions images/app/views/refinery/admin/images/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@

<% if @image.crops.present? %>
<ul id="crop-list" class="clearfix">
<% @image.crops.each do |crop| %>
<%= render partial: 'crop', locals: { crop: crop } %>
<% end %>
<%= render @image.crops %>
</ul>
<% else %>
<p id="no-crops-yet"><strong><%=t('.no_crops_yet')%></strong></p>
Expand Down

0 comments on commit 8f1bc27

Please sign in to comment.