我正在运行我的 rails 应用程序,直到昨天它都运行良好,但是今天当我运行 rails 服务器时,它给了我这个错误。虽然我的 airbrake 也没有任何错误
[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
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
'来自 /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:in
block in load' 来自 /home/techbirds/.rvm/ gems/ruby-2.2.3/gems/activesupport-