Sha256: 733be5e4b1e70fa76b3a6a04c6039bad5b2868722f9a8aa1cd62e70d04ba731b

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

require 'devise'
require 'devise/async/model'
require 'devise/async/version'

module Devise
  module Async
    # 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.enabled = false
    #     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-1.0.0 lib/devise/async.rb
devise-async-1.0.0beta lib/devise/async.rb