【问题标题】:annotate gem is not working注释宝石不起作用
【发布时间】:2018-09-23 15:21:03
【问题描述】:

我正在使用 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】:

遇到了同样的问题。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-01-25
    • 1970-01-01
    • 2017-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-04
    相关资源
    最近更新 更多