mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Move #restart_chceckout_flow out of Order class
This commit is contained in:
@@ -473,13 +473,6 @@ module Spree
|
||||
end
|
||||
end
|
||||
|
||||
def restart_checkout_flow
|
||||
self.update_columns(
|
||||
state: checkout_steps.first,
|
||||
updated_at: Time.zone.now,
|
||||
)
|
||||
end
|
||||
|
||||
def refresh_shipment_rates
|
||||
shipments.map(&:refresh_rates)
|
||||
end
|
||||
|
||||
@@ -130,6 +130,13 @@ module Spree
|
||||
steps << "complete" unless steps.include?("complete")
|
||||
steps
|
||||
end
|
||||
|
||||
def restart_checkout_flow
|
||||
update_columns(
|
||||
state: checkout_steps.first,
|
||||
updated_at: Time.zone.now,
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user