Sha256: e4f2fbc3d7d851b38219ac4998622b1e05fc3ac6301c2b0921e1d97701977774
Contents?: true
Size: 686 Bytes
Versions: 1
Compression:
Stored size: 686 Bytes
Contents
# encoding: UTF-8 module Delayed module JobGroups module JobExtensions extend ActiveSupport::Concern module ReadyToRunExtension def ready_to_run(worker_name, max_run_time) super(worker_name, max_run_time).where(blocked: false) end end included do if Delayed::JobGroups::Compatibility.mass_assignment_security_enabled? attr_accessible :job_group_id, :blocked end belongs_to :job_group, class_name: 'Delayed::JobGroups::JobGroup' class << self prepend ReadyToRunExtension end end def in_job_group? job_group_id.present? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
delayed_job_groups_plugin-0.3.0 | lib/delayed/job_groups/job_extensions.rb |