我有一个类似于这样的ActiveRecord类:
class User < ActiveRecord::Base # How do I document this? enum status [:registering,:active,:suspended,:deleted] end
解决方法
class User < ActiveRecord::Base # @attr [Enumerable<Symbol>] status enum status [:registering,:deleted] end