Module: Devise::Async

Defined in:
lib/devise/async.rb,
lib/devise/async/version.rb

Constant Summary collapse

VERSION =
'1.0.0'
@@enabled =
true

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Allow configuring Devise::Async with a block

Example:

Devise::Async.setup do |config|
  config.enabled = false
end

Yields:

  • (_self)

Yield Parameters:

  • _self (Devise::Async)

    the object that the method was called on



18
19
20
# File 'lib/devise/async.rb', line 18

def self.setup
  yield self
end