Replace "count > 0" with "any?"
This commit is contained in:
parent
97f81d9826
commit
1efd3745df
4 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue