aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/queue_adapters/inline_adapter.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremykemper@gmail.com>2015-03-11 16:29:44 -0700
committerJeremy Kemper <jeremykemper@gmail.com>2015-03-11 16:29:44 -0700
commit7884c8f88e6bf64fe228141720183297ec2fce02 (patch)
treef94c5b905ffb9ba475c3e6b6713838b9f1750f3b /activejob/lib/active_job/queue_adapters/inline_adapter.rb
parentd31c941413ed484762ec819de8f35d413d84a9d6 (diff)
parentfb26645c1ed9d3b74ec421839c9732706f74f5c0 (diff)
downloadrails-7884c8f88e6bf64fe228141720183297ec2fce02.tar.gz
rails-7884c8f88e6bf64fe228141720183297ec2fce02.tar.bz2
rails-7884c8f88e6bf64fe228141720183297ec2fce02.zip
Merge pull request #19295 from square/aj-instances
`ActiveJob::QueueAdapters::*` are no longer singletons
Diffstat (limited to 'activejob/lib/active_job/queue_adapters/inline_adapter.rb')
-rw-r--r--activejob/lib/active_job/queue_adapters/inline_adapter.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/activejob/lib/active_job/queue_adapters/inline_adapter.rb b/activejob/lib/active_job/queue_adapters/inline_adapter.rb
index e25d88e723..1d06324c18 100644
--- a/activejob/lib/active_job/queue_adapters/inline_adapter.rb
+++ b/activejob/lib/active_job/queue_adapters/inline_adapter.rb
@@ -9,14 +9,12 @@ module ActiveJob
#
# Rails.application.config.active_job.queue_adapter = :inline
class InlineAdapter
- class << self
- def enqueue(job) #:nodoc:
- Base.execute(job.serialize)
- end
+ def enqueue(job) #:nodoc:
+ Base.execute(job.serialize)
+ end
- def enqueue_at(*) #:nodoc:
- raise NotImplementedError.new("Use a queueing backend to enqueue jobs in the future. Read more at http://guides.rubyonrails.org/active_job_basics.html")
- end
+ def enqueue_at(*) #:nodoc:
+ raise NotImplementedError.new("Use a queueing backend to enqueue jobs in the future. Read more at http://guides.rubyonrails.org/active_job_basics.html")
end
end
end