Sha256: 4d20d5c38f837d9463c8d6df597c413bcac6e20bd1951619abe438cecaae81cb
Contents?: true
Size: 319 Bytes
Versions: 4
Compression:
Stored size: 319 Bytes
Contents
module GoodJob class JobWrapper def initialize(good_job) @good_job = good_job end def perform serialized_params = @good_job.serialized_params.merge( "provider_job_id" => @good_job.id ) ActiveJob::Base.execute(serialized_params) @good_job.destroy! end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
good_job-0.2.2 | lib/good_job/job_wrapper.rb |
good_job-0.2.1 | lib/good_job/job_wrapper.rb |
good_job-0.2.0 | lib/good_job/job_wrapper.rb |
good_job-0.1.0 | lib/good_job/job_wrapper.rb |