Merge pull request #410 from foodcoop1040/user_count

Count only undeleted users for the user_count expansion varibale
This commit is contained in:
wvengen 2016-03-04 21:36:35 +01:00
commit e5db84b17c

View file

@ -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 },