aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/queue_adapters/inline_adapter.rb
blob: fdefa38d5ed5d0e50915c29cf12764165ca833f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module ActiveJob
  module QueueAdapters
    class InlineAdapter
      class << self
        def enqueue(job)
          Base.execute(job.serialize)
        end

        def enqueue_at(*)
          raise NotImplementedError.new("Use a queueing backend to enqueue jobs in the future. Read more at https://github.com/rails/activejob")
        end
      end
    end
  end
end