注释宝石不起作用

时间:2018-04-13 09:48:39

标签: ruby-on-rails ruby 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_indexes' => 'false',注释了模型,但我也需要查看指数。

有没有解决方法?

1 个答案:

答案 0 :(得分:0)

遇到同样的问题。

已更新为注释2.7.4,并且可以重新工作。

相关问题