Fix sum call in quantifier

This commit is contained in:
Luis Ramos
2020-10-14 09:36:19 +01:00
committed by Matt-Yorkley
parent a8a933d73a
commit 7472b7cc27

View File

@@ -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?