0
如何向Rails類中的attr_accessible字段添加註釋以便它可以被RDoc(或Yard)拾取。下面是我的示例代碼,但註釋不中生成的RDoc的文件出現(雖然方法註釋正常工作):使用RDoc評論rails attr_accessible字段
class Stage < ActiveRecord::Base
# [Stage] Stage sequence number, used to determine order of this Stage in relation to other Stages
attr_accessible :sequence_number
end