Revert previous rubocop auto correct fix that breaks the cart spec

This commit is contained in:
Luis Ramos
2020-06-22 13:08:38 +01:00
parent 473fee19eb
commit adfe1f89b6

View File

@@ -218,7 +218,7 @@ Spree::Order.class_eval do
end
def cap_quantity_at_stock!
line_items.includes(variant: :stock_items).all.find_each(&:cap_quantity_at_stock!)
line_items.includes(variant: :stock_items).all.each(&:cap_quantity_at_stock!)
end
def set_distributor!(distributor)