Module: ActiveJob::QueueAdapter::ClassMethods

Defined in:
activejob/lib/active_job/queue_adapter.rb

Overview

Includes the setter method for changing the active queue adapter.

Instance Method Summary collapse

Instance Method Details

#queue_adapterObject

Returns the backend queue provider. The default queue adapter is the :async queue. See QueueAdapters for more information.



21
22
23
# File 'activejob/lib/active_job/queue_adapter.rb', line 21

def queue_adapter
  _queue_adapter
end

#queue_adapter=(name_or_adapter_or_class) ⇒ Object

Specify the backend queue provider. The default queue adapter is the :async queue. See QueueAdapters for more information.



32
33
34
# File 'activejob/lib/active_job/queue_adapter.rb', line 32

def queue_adapter=(name_or_adapter_or_class)
  interpret_adapter(name_or_adapter_or_class)
end

#queue_adapter_nameObject



25
26
27
# File 'activejob/lib/active_job/queue_adapter.rb', line 25

def queue_adapter_name
  _queue_adapter_name
end