Skip to content

Commit

Permalink
using size instead of count
Browse files Browse the repository at this point in the history
  • Loading branch information
sksavant committed Feb 10, 2015
1 parent 1c9081e commit 63a1e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/photos/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
%p= link_to 'Delete Photo', @photo, method: :delete, data: { confirm: 'Are you sure?' }, :class => 'btn btn-default btn-xs'

.col-md-6
- if @photo.plantings.count > 0 or @photo.harvests.count > 0 or @photo.gardens.count > 0
- if @photo.plantings.size > 0 or @photo.harvests.size > 0 or @photo.gardens.size > 0
%p This photo depicts:
%ul
- if @photo.plantings.count > 0
Expand Down

0 comments on commit 63a1e16

Please sign in to comment.