Module: SwitchUser::Provider
- Defined in:
- lib/switch_user/provider.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
Defined Under Namespace
Classes: Authlogic, Base, Clearance, Devise, Dummy, RestfulAuthentication, Session, Sorcery
Class Method Summary collapse
Class Method Details
.init(controller) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/switch_user/provider.rb', line 12 def self.init(controller) klass_part = SwitchUser.provider.to_s.classify klass = "SwitchUser::Provider::#{klass_part}".constantize klass.new(controller) end |