General functionality improvement

This commit is contained in:
2014-06-26 17:26:15 +02:00
parent 8730d30621
commit 2a30ff5d3d
19 changed files with 71 additions and 52 deletions
+1
View File
@@ -99,6 +99,7 @@ class List
end
def self.active_for_supplier(supplier_id, options = {})
supplier_id = supplier_id.id if supplier_id.is_a?(Supplier)
database.view(active_by_supplier_id_view(key: supplier_id, reduce: false, include_docs: true))
end