I was running my rails application and it was working fine till yesterday but today when i run rails server it is giving me this error.Though my airbrake is also dont have any errors
[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
' 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:in
block in load' from /home/techbirds/.rvm/gems/ruby-2.2.3/gems/activesupport-
It looks like you have inadvertently upgraded to the new v5 Airbrake gem. You can either:
gem 'airbrake', '~> 4.3.4'
Have you check the Migration guide on the github
repo?
Old option | New option | required? api_key | project_key | required ....... | ........... | ........
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With