Refactor orders index

This commit is contained in:
wvengen 2015-02-18 23:46:50 +01:00
parent 27fe8a4d42
commit 1b48882c0e
3 changed files with 3 additions and 1 deletions

View file

@ -6,7 +6,7 @@
= t '.new_order'
%span.caret
%ul.dropdown-menu
- Supplier.where(id: Article.undeleted.select(:supplier_id).distinct).order('suppliers.name ASC').each do |supplier|
- for supplier in @suppliers
%li= link_to supplier.name, new_order_path(supplier_id: supplier.id), tabindex: -1
.well