Jenelle Yonkman
07/27/2021, 12:33 AMreturn_authorizations state machine as described in the documentation, using
Spree.config do |config|
...
config.state_machines.return_authorization = '::StoreName::StateMachines::ReturnAuthorization'
...
end
but when I try to do the same with the return_item_acceptance state machine adding
config.state_machines.return_item_acceptance = '::StoreName::StateMachines::ReturnItem::AcceptanceStatus'
to the block, it doesn't seem to work. I can set return_authorization to the ReturnItem::AcceptanceStatus machine, so it doesn't seem to be a problem with the new state machine. Any ideas?Jared Norman
Jenelle Yonkman
07/27/2021, 10:25 PMSpree::Core::StateMachines has an instance variable @return_item_acceptance_status but an attr_writer return_item_acceptance. Same thing with return_item_reception. I monkey patched it in my application and got it working.Jared Norman