Sha256: 65464b0e71788baddc7aef315d4d4b11edf086c5a5757e00c35b4166c6c4672d
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
require "active_support/dependencies" require "devise/async/version" module Devise module Async autoload :Worker, "devise/async/worker" autoload :Backend, "devise/async/backend" autoload :Model, "devise/async/model" module Backend autoload :Base, "devise/async/backend/base" autoload :Resque, "devise/async/backend/resque" autoload :Sidekiq, "devise/async/backend/sidekiq" autoload :DelayedJob, "devise/async/backend/delayed_job" autoload :QueueClassic, "devise/async/backend/queue_classic" autoload :Torquebox, "devise/async/backend/torquebox" end # Defines the queue backend to be used. Resque by default. mattr_accessor :backend @@backend = :resque # Defines the queue in which the background job will be enqueued. Default is :mailer. mattr_accessor :queue @@queue = :mailer # Defines the enabled configuration that if set to false the emails will be sent synchronously mattr_accessor :enabled @@enabled = true # Allow configuring Devise::Async with a block # # Example: # # Devise::Async.setup do |config| # config.backend = :resque # config.queue = :my_custom_queue # end def self.setup yield self end end end # Register devise-async model in Devise Devise.add_module(:async, :model => 'devise/async/model')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-async-0.9.0 | lib/devise/async.rb |
devise-async-0.8.0 | lib/devise/async.rb |