4

与 mongoid 一起使用的最佳状态机 gem 是什么?

4

2 回答 2

6

state_machine gem https://github.com/pluginaweek/state_machine应该与 mongoid 一起使用,因为它使用 active_model

于 2011-01-19T00:22:30.250 回答
5

一个不错的:https ://github.com/ryanza/stateflow

于 2011-01-14T18:57:46.477 回答