Module: AnyLogin::Provider::Authlogic::Controller

Defined in:
lib/any_login/providers/authlogic.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.any_login_current_user_methodObject



7
8
9
# File 'lib/any_login/providers/authlogic.rb', line 7

def self.
  @@any_login_current_user_method ||= "current_#{AnyLogin.klass.to_s.parameterize.underscore}".to_sym
end

Instance Method Details

#any_login_sign_inObject



11
12
13
14
15
16
# File 'lib/any_login/providers/authlogic.rb', line 11

def 
  reset_session
  @loginable = AnyLogin.klass.find(user_id)
  Object.const_get("#{AnyLogin.klass}Session").create(@loginable)
  redirect_to main_app.send(AnyLogin.)
end