Class: ActiveJob::Inlined::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/active_job/inlined.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job) ⇒ Proxy

Returns a new instance of Proxy.



47
48
49
# File 'lib/active_job/inlined.rb', line 47

def initialize(job)
  @job = job
end

Class Method Details

.chains_on(method) ⇒ Object



56
57
58
# File 'lib/active_job/inlined.rb', line 56

def self.chains_on(method)
  class_eval "def #{method}(...); self.class.new @job.#{method}(...); end", __FILE__, __LINE__ + 1
end

Instance Method Details

#perform_laterObject



51
52
53
54
# File 'lib/active_job/inlined.rb', line 51

def perform_later(...)
  @job.perform_now(...)
  nil
end