From d215e4ab8b5cf7962f2195c1cb39428dcec3f99b Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 14 Mar 2013 16:18:20 +0100 Subject: [PATCH] Fix active for supplier view --- app/models/list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/list.rb b/app/models/list.rb index 6ce74fa8..dc19c8a3 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -23,7 +23,7 @@ class List validates :supplier_id, presence: true view :by_supplier_id_and_id, key: [:supplier_id, :_id] - view :for_supplier_view, key: [:supplier_id, :state, :created_at] + view :for_supplier_view, key: [:supplier_id, :created_at] view :active_by_table_id_view, type: :custom, map_function: %|function(doc){ if(doc.ruby_class == 'List' && doc.state == 'active'){