Sha256: 6e877c957e3d737bf08527f5a96bd443787d2b251d66e5839183117e14649268
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
module Lev module ActiveJob class ConfiguredJob attr_reader :routine_class def initialize(routine_class, options) @routine_class = routine_class @options = options end def options routine_class.active_job_enqueue_options.merge(@options) end def perform_later(*args, **kwargs, &block) routine_class.job_class.new.perform_later(routine_class, options, *args, **kwargs, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lev-12.1.0 | lib/lev/active_job/configured_job.rb |