具有历史记录、超级状态和日志/统计数据的 Ruby 状态机?
Ruby 或 Ruby on Rails 是否有支持 superstates,可以跟踪过去的状态(并编辑它们),并跟踪在每个状态上花费的时间?
我使用过 aasm 但它不具备所有这些功能。我已经研究了许多其他选项,但不清楚哪一个最能支持所有要求。有没有人以这种方式将 aasm 与 paper_trail 一起使用?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能已经看过它,但是 http://slagyr.github.com/statemachine/index .html 似乎是当今与状态机一起使用的宝石,并且它确实支持超级状态。
编辑:您链接到的文章使用状态机..愚蠢的我
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