Ruby State Machine with history, superstates, and logs/statistics?
-
14-11-2019 - |
Domanda
Is there any state machine implementation for Ruby or Ruby on Rails that supports superstates, can keep track of past states (and edit them), and keep track of the time spent on each state?
I've used aasm but it doesn't have all these features. I've looked at many other options but it's not clear which one might best support all of the requirements. Has anyone used aasm with paper_trail in such a manner?
Soluzione
You've probably already looked at it, but http://slagyr.github.com/statemachine/index.html seems to be the gem to use with state machines these days, and it does support superstates.
edit: and the article you've linked to uses statemachine.. silly me
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow