Sha256: 177556c0865e5c40ba96386c59eb9e4014dbe9a837f113f401da1cf198cbb29a

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

module Resque
  module SelfLookup
    def payload_class
      @payload_class ||= constantize(@payload['class'])
      @payload_class.instance_eval { class << self; self end }.send(:attr_accessor, :worker)
      @payload_class.instance_eval { class << self; self end }.send(:attr_accessor, :job)
      @payload_class.worker =  self.worker
      @payload_class.job =  self
      return @payload_class
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zuora_connect-1.4.61 lib/resque/self_lookup.rb
zuora_connect-1.4.60 lib/resque/self_lookup.rb