【问题标题】:How to address "DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases"?如何解决“弃用警告:ActiveSupport::Memoizable 已弃用并将在未来版本中删除”?
【发布时间】:2012-08-07 03:33:25
【问题描述】:

升级到 Rails 3.2.0 后,我开始在我的开发日志测试输出中看到以下弃用警告:

DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from <top (required)> at /Users/foo/bar/baz/bif/config/environment.rb:5)

注意结尾config/environment.rb:5,这与than other 相关的(可记忆的)SO 问题不同。

【问题讨论】:

    标签: ruby-on-rails warnings ruby-on-rails-3.2 deprecated


    【解决方案1】:

    我将此追溯到this rails issue(特别是this comment)和this carrierwave issue

    解决办法是升级carrierwave

    Gemfile 差异

    -gem 'carrierwave', '~> 0.5.8'
    +gem 'carrierwave'
    

    记得运行bundle update

    【讨论】:

      猜你喜欢
      • 2016-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-28
      • 2017-05-25
      • 2018-11-29
      • 2012-01-31
      相关资源
      最近更新 更多