Module: Resque::Failure::Thoughtbot

Included in:
Airbrake, Hoptoad
Defined in:
lib/resque/failure/thoughtbot.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/resque/failure/thoughtbot.rb', line 4

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#saveObject



23
24
25
26
27
28
29
30
# File 'lib/resque/failure/thoughtbot.rb', line 23

def save
  self.class.klass.notify_or_ignore(exception,
    :parameters => {
      :payload_class => payload['class'].to_s,
      :payload_args => payload['args'].inspect
    }
  )
end