class method
self.lookup
Ruby on Rails 7.2.3
Since v5.2.8.1Signature
self.lookup(name)
Returns adapter for specified name.
ActiveJob::QueueAdapters.lookup(:sidekiq) # => ActiveJob::QueueAdapters::SidekiqAdapter
Parameters
-
namereq
Source
# File activejob/lib/active_job/queue_adapters.rb, line 138
def lookup(name)
const_get(name.to_s.camelize << ADAPTER)
end
Defined in activejob/lib/active_job/queue_adapters.rb line 138
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::QueueAdapters