我使用的是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'
,注释模型,但我也需要看到指数。
有没有修复?
陷入同样的问题。
已更新为注释2.7.4并且它再次正常工作。