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:
parent
852460852c
commit
528efcbbbe
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue