From 7472b7cc27068a51d10b7dfe67c2b65b39ca3cf5 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Wed, 14 Oct 2020 09:36:19 +0100 Subject: [PATCH] Fix sum call in quantifier --- app/models/spree/stock/quantifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/stock/quantifier.rb b/app/models/spree/stock/quantifier.rb index 01e9b77cb1..889f210ca3 100644 --- a/app/models/spree/stock/quantifier.rb +++ b/app/models/spree/stock/quantifier.rb @@ -15,7 +15,7 @@ module Spree # may still be in an active cart after it's deleted, so this will mark it as out of stock. return 0 if @variant.deleted? - stock_items.sum(&:count_on_hand) + stock_items.sum(:count_on_hand) end def backorderable?