Considering the state_machine gem, how does one select a set of state names/symbols that come before a given state?
Lets say I have four states:
There is no such functionality built into the (currently unmaintained)
state_machine gem. Since its entirely possible for non linear state transitions, it may be extremely complex, and quite unpredictable, to accurately describe "which state comes before another state." Thus, each application which makes use of the
state_machine gem will need to create its own mixin to dynamically determine which states in the cycle come before and after each other.
Credit for answer goes to the comments below the OP.