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_class ⇒ Object
26 27 28 |
# File 'lib/simplest_auth/session.rb', line 26 def user_class user_class_name.constantize end |
#user_class_name ⇒ Object
22 23 24 |
# File 'lib/simplest_auth/session.rb', line 22 def user_class_name @user_class_name || 'User' end |