您建议在与导轨3配合使用的状态机上使用什么宝石

问题描述

|| 我正在使用Rubystasm gem \“ ruby​​ist-aasm \”,事实是它一直向我显示警告消息,这很烦人。
DEPRECATION WARNING: Base.named_scope has been deprecated,please use Base.scope instead.
我想要的是相同的功能,但没有警告消息。     

解决方法

我认为是state_machine。它进步最大。 ruby-toolbox.com上的所有状态机宝石     

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...