Module: Honeybadger::Plugins::Resque::Installer Private

Defined in:
lib/honeybadger/plugins/resque.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
40
# File 'lib/honeybadger/plugins/resque.rb', line 37

def self.included(base)
  base.send(:alias_method, :payload_class_without_honeybadger, :payload_class)
  base.send(:alias_method, :payload_class, :payload_class_with_honeybadger)
end

Instance Method Details

#payload_class_with_honeybadgerObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



42
43
44
45
46
47
48
49
50
# File 'lib/honeybadger/plugins/resque.rb', line 42

def payload_class_with_honeybadger
  payload_class_without_honeybadger.tap do |klass|
    unless klass.respond_to?(:around_perform_with_honeybadger)
      klass.instance_eval do
        extend(::Honeybadger::Plugins::Resque::Extension)
      end
    end
  end
end