注释宝石不起作用

问题描述 投票:2回答:1

我使用的是ruby 2.5.1,rails 5.2.0rc2和注释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',注释模型,但我也需要看到指数。

有没有修复?

ruby-on-rails ruby annotate
1个回答
0
投票

陷入同样的​​问题。

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

© www.soinside.com 2019 - 2024. All rights reserved.