mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Revert rubocop autocorrect, each is needed here for find_each is not available for Arrays
This commit is contained in:
@@ -720,7 +720,7 @@ module Spree
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user