Module: ActiveJob::QueueAdapter::ClassMethods
- Defined in:
- lib/active_job/queue_adapter.rb
Overview
Includes the setter method for changing the active queue adapter.
Instance Method Summary collapse
-
#queue_adapter ⇒ Object
Returns the backend queue provider.
-
#queue_adapter=(name_or_adapter_or_class) ⇒ Object
Specify the backend queue provider.
Instance Method Details
#queue_adapter ⇒ Object
Returns the backend queue provider. The default queue adapter is the :async
queue. See QueueAdapters for more information.
20 21 22 |
# File 'lib/active_job/queue_adapter.rb', line 20 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.
27 28 29 |
# File 'lib/active_job/queue_adapter.rb', line 27 def queue_adapter=(name_or_adapter_or_class) self._queue_adapter = interpret_adapter(name_or_adapter_or_class) end |