1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add doc for setting the queue adapter.

This commit is contained in:
Larry Lv 2014-05-20 00:58:19 +08:00
parent 8a05587227
commit 29c9dcc4af

View file

@ -20,6 +20,13 @@ switch between them without having to rewrite your jobs.
## Usage
Set the queue adapter for Active Job:
``` ruby
ActiveJob::Base.queue_adapter = :inline # default queue adapter
# Adapters currently supported: :resque, :sidekiq, :sucker_punch, :delayed_job
```
Declare a job like so:
```ruby