ruby-on-rails – Rails airbrake undefined方法

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – Rails airbrake undefined方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在运行我的rails应用程序,它工作正常,直到昨天,但今天当我运行rails服务器它给我这个错误.虽然我的空气制动器也没有任何错误
[airbrake.rb]
Airbrake.configure do |config|
  config.api_key = APP_CONFIG.airbrake.api_key
  config.host    = APP_CONFIG.airbrake.host
  config.port    = APP_CONFIG.airbrake.port
  config.secure  = config.port == 443
end

06001

configure'
from /home/techbirds/icare-master/config/initializers/airbrake.rb:1:in

from /home/techbirds/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in load'
from /home/techbirds/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in
block in load’
from /home/techbirds/.rvm/gems/ruby-2.2.3/gems/activesupport-

解决方法

看起来你无意中升级到了 new v5 Airbrake gem.你可以:

>按照migration guide从airbrake v4迁移到v5,或>将空气制动器锁定到宝石文件中的v4,例如类似宝石’airbrake’,’〜> 4.3.4′

原文链接:https://www.f2er.com/ruby/267438.html

猜你在找的Ruby相关文章