我正在运行我的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
Run Code Online (Sandbox Code Playgroud)
Run Code Online (Sandbox Code Playgroud)undefined method `api_key=' for #<Airbrake::Config:0x000000073fa1e0> (NoMethodError) from /home/techbirds/.rvm/gems/ruby-2.2.3/gems/airbrake-ruby-1.0.0/lib/airbrake-ruby.rb:98:in
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:inload' from /home/techbirds/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:inblock in load'from /home/techbirds/.rvm/宝石/红宝石2.2.3 /宝石/ activesupport-