From 294d14624cf19a7bde37ec9a549a85f6a6061985 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 4 Mar 2016 20:47:49 +0100 Subject: [PATCH] Count only undeleted users for the user_count expansion varibale --- lib/foodsoft/expansion_variables.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foodsoft/expansion_variables.rb b/lib/foodsoft/expansion_variables.rb index 224d0170..aba70013 100644 --- a/lib/foodsoft/expansion_variables.rb +++ b/lib/foodsoft/expansion_variables.rb @@ -34,7 +34,7 @@ module Foodsoft 'foodsoft.version' => Foodsoft::VERSION, 'foodsoft.revision' => Foodsoft::REVISION, - 'user_count' => ->{ User.count }, + 'user_count' => ->{ User.undeleted.count }, 'ordergroup_count' => ->{ Ordergroup.undeleted.count }, 'active_ordergroup_count' => ->{ active_ordergroup_count }, 'supplier_count' => ->{ Supplier.undeleted.count },