Count only undeleted users for the user_count expansion varibale

This commit is contained in:
Patrick Gansterer 2016-03-04 20:47:49 +01:00
parent 97f81d9826
commit 294d14624c

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