Replace adjustment.open with adjustment.fire_events(open) to avoid method name conflict

This commit is contained in:
luisramos0
2020-01-02 16:58:11 +00:00
parent 6cfb060184
commit 108f57a705

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