Sha256: 21b8aa41a5cbedbd4ef37eabdcdf740312762593385d7c1307b394c5c159c1fa

Contents?: true

Size: 321 Bytes

Versions: 91

Compression:

Stored size: 321 Bytes

Contents

module ActiveJob
  class ConfiguredJob #:nodoc:
    def initialize(job_class, options={})
      @options = options
      @job_class = job_class
    end

    def perform_now(*args)
      @job_class.new(*args).perform_now
    end

    def perform_later(*args)
      @job_class.new(*args).enqueue @options
    end
  end
end

Version data entries

91 entries across 89 versions & 12 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activejob-5.0.2/lib/active_job/configured_job.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activejob-4.2.8/lib/active_job/configured_job.rb
activejob-5.0.2 lib/active_job/configured_job.rb
activejob-5.0.2.rc1 lib/active_job/configured_job.rb
activejob-4.2.8 lib/active_job/configured_job.rb
activejob-4.2.8.rc1 lib/active_job/configured_job.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activejob-5.0.1/lib/active_job/configured_job.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activejob-5.0.1/lib/active_job/configured_job.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activejob-5.0.1/lib/active_job/configured_job.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activejob-5.0.1/lib/active_job/configured_job.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activejob-5.0.1/lib/active_job/configured_job.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activejob-5.0.1/lib/active_job/configured_job.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activejob-5.0.1/lib/active_job/configured_job.rb
abaci-0.3.0 vendor/bundle/gems/activejob-5.0.0/lib/active_job/configured_job.rb
activejob-5.0.1 lib/active_job/configured_job.rb
activejob-5.0.1.rc2 lib/active_job/configured_job.rb
activejob-5.0.1.rc1 lib/active_job/configured_job.rb
activejob-5.0.0.1 lib/active_job/configured_job.rb
activejob-4.2.7.1 lib/active_job/configured_job.rb
activejob-4.2.7 lib/active_job/configured_job.rb