module ActiveJob::QueueAdapter::ClassMethods
def queue_adapter=(name_or_adapter)
is the +:async+ queue. See QueueAdapters for more
Specify the backend queue provider. The default queue adapter
def queue_adapter=(name_or_adapter) case name_or_adapter when Symbol, String queue_adapter = ActiveJob::QueueAdapters.lookup(name_or_adapter).new assign_adapter(name_or_adapter.to_s, queue_adapter) else if queue_adapter?(name_or_adapter) adapter_name = "#{name_or_adapter.class.name.demodulize.remove('Adapter').underscore}" assign_adapter(adapter_name, name_or_adapter) else raise ArgumentError end end end