1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[skip ci] Update documentation for QueueAdapters::lookup

This commit is contained in:
Anton Davydov 2015-05-30 00:10:45 +03:00
parent 852460852c
commit 528efcbbbe

View file

@ -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