Module: SimplestAuth::Session::ClassMethods

Defined in:
lib/simplest_auth/session.rb

Instance Method Summary collapse

Instance Method Details

#set_user_class_name(user_class_name) ⇒ Object



18
19
20
# File 'lib/simplest_auth/session.rb', line 18

def set_user_class_name(user_class_name)
  @user_class_name = user_class_name
end

#user_classObject



26
27
28
# File 'lib/simplest_auth/session.rb', line 26

def user_class
  user_class_name.constantize
end

#user_class_nameObject



22
23
24
# File 'lib/simplest_auth/session.rb', line 22

def user_class_name
  @user_class_name || 'User'
end