While using acts_as_state_machine, I noticed it doesn’t error when invalid state transition is used. No false return, no exception. By invalid state transition, I mean utilizing an event that does not define the current state as a ‘from’ state. Does anyone find this lacking? I would like to be able to catch invalid state transition (such as attempting to fulfill a closed order) and report that to the user.
I’m using acts_as_state_machine and when I transfer to an invalid state it gives back instead of true (which would be returned if it was a valid state). I think this should be returned as false. I looked through the code and I couldn’t see where it’s returning . If you can find this you could change the code to return false instead.