Module: Delayed::ActiveJobAdapter::EnqueuingPatch::PrependedMethods
- Defined in:
- lib/delayed/active_job_adapter.rb
Instance Method Summary collapse
Instance Method Details
#enqueue(opts = {}) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/delayed/active_job_adapter.rb', line 39 def enqueue(opts = {}) raise "`:run_at` is not supported. Use `:wait_until` instead." if opts.key?(:run_at) self.provider_attributes = opts.except(:wait, :wait_until, :queue, :priority) opts[:priority] = Delayed::Priority.new(opts[:priority]) if opts.key?(:priority) super(opts) end |