Module: Devise

Defined in:
lib/version.rb,
lib/devise/rails.rb,
lib/devise/archangel.rb,
lib/devise/archangel/config.rb,
lib/devise/models/archangelable.rb,
lib/devise/archangel/url_helpers.rb

Defined Under Namespace

Modules: Archangel, Models Classes: ArchangelCallbacksController, Engine

Constant Summary collapse

@@archangel_path_prefix =
nil
@@archangel_configs =
ActiveSupport::OrderedHash.new

Class Method Summary collapse

Class Method Details

.archangel(provider, *args) ⇒ Object

Specify an archangel provider.

config.archangel :github, APP_ID, APP_SECRET


42
43
44
45
46
# File 'lib/devise/archangel.rb', line 42

def self.archangel(provider, *args)
  @@helpers << Devise::Archangel::UrlHelpers
  config = Devise::Archangel::Config.new(provider, args)
  @@archangel_configs[config.strategy_name.to_sym] = config
end

.archangel_providersObject



34
35
36
# File 'lib/devise/archangel.rb', line 34

def self.archangel_providers
  archangel_configs.keys
end