Replace "count > 0" with "any?"

This commit is contained in:
Patrick Gansterer 2016-03-04 17:39:06 +01:00
parent 97f81d9826
commit 1efd3745df
4 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
-# XXX code duplication of foodcoop-adam's app/views/group_orders/show.html.haml
- if @articles_grouped_by_category.count > 0
- if @articles_grouped_by_category.any?
%table.table.table-hover
%thead
%tr