Jacob Penn
06/27/2023, 6:08 PMState cannot transition via "next"Jared Norman
errors on the order to get the reason.Jacob Penn
06/27/2023, 6:09 PMJacob Penn
06/27/2023, 6:24 PM@errors=[#<ActiveModel::Error attribute=state, type=invalid_transition, options={:event=>"next", :state=>"confirm", :message=>nil}>]>Jacob Penn
06/27/2023, 6:24 PMJared Norman
confirm to complete? You probably want complete rather then next then.Jared Norman
confirm to anything via nextJacob Penn
06/27/2023, 6:29 PMJacob Penn
06/27/2023, 6:29 PMunless Rails.env.development? || Rails.env.test?
rescue_from StateMachines::InvalidTransition,
with: :handle_order_transition_error
endJacob Penn
06/27/2023, 6:30 PMJacob Penn
06/27/2023, 6:30 PMJacob Penn
06/27/2023, 6:31 PMEdwin Cruz
06/27/2023, 8:31 PMseandawes
06/29/2023, 5:59 PMJared Norman
seandawes
06/29/2023, 6:02 PM