Module: SwitchUser
- Defined in:
- lib/switch_user.rb,
lib/switch_user/rails.rb,
lib/switch_user/version.rb,
lib/switch_user/provider.rb,
lib/switch_user/base_guard.rb,
lib/switch_user/user_loader.rb,
lib/switch_user/lambda_guard.rb,
lib/switch_user/provider/base.rb,
lib/switch_user/provider/dummy.rb,
lib/switch_user/provider/devise.rb,
lib/switch_user/provider/session.rb,
lib/switch_user/provider/sorcery.rb,
lib/switch_user/provider/authlogic.rb,
lib/switch_user/provider/clearance.rb,
lib/switch_user/provider/restful_authentication.rb,
lib/generators/switch_user/install/install_generator.rb
Defined Under Namespace
Modules: Generators, Provider
Classes: BaseGuard, Engine, InvalidScope, LambdaGuard, UserLoader
Constant Summary
collapse
- VERSION =
"0.9.3"
Class Method Summary
collapse
Class Method Details
.available_scopes ⇒ Object
30
31
32
|
# File 'lib/switch_user.rb', line 30
def self.available_scopes
available_users.keys
end
|
.guard_class=(klass) ⇒ Object
34
35
36
|
# File 'lib/switch_user.rb', line 34
def self.guard_class=(klass)
@@guard_class = klass.constantize
end
|
.setup {|_self| ... } ⇒ Object
26
27
28
|
# File 'lib/switch_user.rb', line 26
def self.setup
yield self
end
|