Merge pull request #4638 from luisramos0/fix_cart_s2

Replace adjustment.open with adjustment.fire_events(open) to avoid method name conflict
This commit is contained in:
Luis Ramos
2020-01-13 14:16:56 +00:00
committed by GitHub

View File

@@ -176,7 +176,7 @@ module Spree
previous_states = @order.adjustments.each_with_object({}) do |adjustment, hash|
hash[adjustment.id] = adjustment.state
end
@order.adjustments.each(&:open)
@order.adjustments.each { |adjustment| adjustment.fire_events(:open) }
yield