How to avoid defining state twice in aasm

后端 未结 0 978
日久生厌
日久生厌 2021-01-22 06:06

I\'m currently using the aasm gem and it works great. Is it possible to define state just once instead of twice like below?

enum state: [:pending, :a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题