Sha256: d65b8dadc7a8b4619e79c6cc7df68b618af7d09c193511c3f49b96f5b5a58bc9
Contents?: true
Size: 1.46 KB
Versions: 2
Compression:
Stored size: 1.46 KB
Contents
require "active_support/dependencies" require "devise/async/version" module Devise module Async autoload :Proxy, "devise/async/proxy" autoload :Worker, "devise/async/worker" autoload :Backend, "devise/async/backend" 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" end # Defines the queue backend to be used. Resque by default. mattr_accessor :backend @@backend = :resque # Defines the mailer class to be used. Devise::Mailer by default. mattr_accessor :mailer @@mailer = "Devise::Mailer" # Allow configuring Devise::Async with a block # # Example: # # Devise::Async.setup do |config| # config.backend = :resque # config.mailer = "MyMailer" # end def self.setup yield self end end end # Just to be compatible with first release # TODO remove when appropriate module DeviseAsync class Proxy < Devise::Async::Proxy def initialize(method, resource) puts "DEPRECATION WARNING: DeviseAsync::Proxy has been deprecated. Please use Devise::Async::Proxy." super end end def self.backend=(value) puts "DEPRECATION WARNING: `DeviseAsync.backend=` has been deprecated. Please use `Devise::Async.backend=`." Devise::Async.backend = value end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-async-0.1.1 | lib/devise/async.rb |
devise-async-0.1.0 | lib/devise/async.rb |