Closed chrishough closed 11 months ago
Nope, did not consider yet.
If you need it for your use case, you could use the on_transition
hook https://github.com/geekq/workflow#on_transition to save the previous state to some instance variable.
Thank you @geekq we can use that!
Before I consider adding a patch to the library, I was curious if we have ever considered having an instance method like
current_state
that would beprevious_state
?