Class: Resque::Failure::Airbrake

Inherits:
Base
  • Object
show all
Defined in:
lib/airbrake/resque.rb

Overview

Provides Resque integration with Airbrake.

Instance Method Summary collapse

Instance Method Details

#saveObject

Since:

  • v5.0.0



10
11
12
13
14
15
# File 'lib/airbrake/resque.rb', line 10

def save
  ::Airbrake.notify_sync(exception, payload) do |notice|
    notice[:context][:component] = 'resque'
    notice[:context][:action] = action(payload)
  end
end