From 528efcbbbed3be4fc7ddbbb6df598319793743ec Mon Sep 17 00:00:00 2001 From: Anton Davydov Date: Sat, 30 May 2015 00:10:45 +0300 Subject: [skip ci] Update documentation for QueueAdapters::lookup --- activejob/lib/active_job/queue_adapters.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activejob') 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 -- cgit v1.2.3