aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authorAnton Davydov <antondavydov.o@gmail.com>2015-05-30 00:10:45 +0300
committerAnton Davydov <antondavydov.o@gmail.com>2015-06-01 14:21:28 +0300
commit528efcbbbed3be4fc7ddbbb6df598319793743ec (patch)
treebca50e01c0f27f0311487c397f0b8cdb5e14feb8 /activejob/lib
parent852460852cf1635af3f2861847253e8b5677acc0 (diff)
downloadrails-528efcbbbed3be4fc7ddbbb6df598319793743ec.tar.gz
rails-528efcbbbed3be4fc7ddbbb6df598319793743ec.tar.bz2
rails-528efcbbbed3be4fc7ddbbb6df598319793743ec.zip
[skip ci] Update documentation for QueueAdapters::lookup
Diffstat (limited to 'activejob/lib')
-rw-r--r--activejob/lib/active_job/queue_adapters.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activejob/lib/active_job/queue_adapters.rb b/activejob/lib/active_job/queue_adapters.rb
index bd69e525bb..1335e3236e 100644
--- a/activejob/lib/active_job/queue_adapters.rb
+++ b/activejob/lib/active_job/queue_adapters.rb
@@ -116,6 +116,10 @@ module ActiveJob
private_constant :ADAPTER
class << self
+ # Returns adapter for specified name.
+ #
+ # ActiveJob::QueueAdapters.lookup(:sidekiq)
+ # # => ActiveJob::QueueAdapters::SidekiqAdapter
def lookup(name)
const_get(name.to_s.camelize << ADAPTER)
end