README.md in devise-async-0.7.0 vs README.md in devise-async-0.8.0
- old
+ new
@@ -6,10 +6,11 @@
* Resque
* Sidekiq
* Delayed::Job
* QueueClassic
+* Torquebox
## Installation
Add this line to your application's Gemfile:
@@ -36,18 +37,27 @@
```
Set your queuing backend by creating `config/initializers/devise_async.rb`:
```ruby
-# Supported options: :resque, :sidekiq, :delayed_job, :queue_classic
+# Supported options: :resque, :sidekiq, :delayed_job, :queue_classic, :torquebox
Devise::Async.backend = :resque
```
Tip: it defaults to Resque. You don't need to create the initializer if using it.
## Advanced Options
+### Enabling via config
+
+The gem can be enabled/disabled easily via config, for example based on environment.
+
+```ruby
+# config/initializers/devise_async.rb
+Devise::Async.enabled = true # | false
+```
+
### Custom mailer class
Customize `Devise.mailer` at will and `devise-async` will honor it.
Upgrade note: if you're upgrading from any version < 0.6 and getting errors
@@ -69,9 +79,10 @@
similar do what `Devise` offers.
```ruby
# config/initializers/devise_async.rb
Devise::Async.setup do |config|
+ config.enabled = true
config.backend = :resque
config.queue = :my_custom_queue
end
```