Ruby on rails 注释gem不起作用

Ruby on rails 注释gem不起作用,ruby-on-rails,ruby,annotate,Ruby On Rails,Ruby,Annotate,我使用的是ruby 2.5.1、rails 5.2.0rc2和annotate 2.7.2。但是,当我运行rails db:migrateannotate gem时,会抛出一个错误: Unable to annotate app/models/a.rb: can't modify frozen String Unable to annotate app/models/a.rb: no implicit conversion of nil into Array Unable to annotate

我使用的是ruby 2.5.1、rails 5.2.0rc2和annotate 2.7.2。但是,当我运行
rails db:migrate
annotate gem时,会抛出一个错误:

Unable to annotate app/models/a.rb: can't modify frozen String
Unable to annotate app/models/a.rb: no implicit conversion of nil into Array
Unable to annotate app/models/b.rb: can't modify frozen String
Unable to annotate app/models/b.rb: no implicit conversion of nil into Array
Unable to annotate app/models/c.rb: can't modify frozen String
Unable to annotate app/models/c.rb: no implicit conversion of nil into Array
我发现设置
'show_index'=>'false'
,对模型进行了注释,但我也需要查看索引


有解决方法吗?

遇到了相同的问题


已更新为注释2.7.4,并且它再次工作。

我认为rails 5存在一些问题