Module: AnyLogin::Provider::Clearance::Controller

Defined in:
lib/any_login/providers/clearance.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/clearance.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/clearance.rb', line 11

def 
  reset_session
  @loginable = AnyLogin.klass.find(user_id)
   @loginable
  redirect_to main_app.send(AnyLogin.)
end