Sha256: 5a69e645187d204b617017911964d8c65d86f74dc0d56bef101c70dd3b9ecf07
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
# frozen_string_literal: true module ActiveJob module QueueAdapters # == Active Job Inline adapter # # When enqueuing jobs with the Inline adapter the job will be executed # immediately. # # To use the Inline set the queue_adapter config to +:inline+. # # Quails.application.config.active_job.queue_adapter = :inline class InlineAdapter def enqueue(job) #:nodoc: Base.execute(job.serialize) end def enqueue_at(*) #:nodoc: raise NotImplementedError, "Use a queueing backend to enqueue jobs in the future. Read more at http://guides.rubyonquails.org/active_job_basics.html" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | activejob/lib/active_job/queue_adapters/inline_adapter.rb |