mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Return a boolean in OrderWorkflow#advance_to_state
Returns true if advancing was successful, which is helpful in control flows that use the method in a conditional
This commit is contained in:
@@ -44,6 +44,8 @@ class OrderWorkflow
|
||||
|
||||
after_transition_hook(options)
|
||||
end
|
||||
|
||||
order.state == target_state
|
||||
end
|
||||
|
||||
def advance_order!(options)
|
||||
|
||||
Reference in New Issue
Block a user