Module: Authpds::Session::Record
- Included in:
- Authpds::Session
- Defined in:
- lib/authpds/session/record.rb
Instance Method Summary collapse
-
#get_record(login) ⇒ Object
Get the record associated with this PDS user.
-
#set_record ⇒ Object
Set the record information associated with this PDS user.
Instance Method Details
#get_record(login) ⇒ Object
Get the record associated with this PDS user.
5 6 7 8 |
# File 'lib/authpds/session/record.rb', line 5 def get_record(login) record = (klass.find_by_smart_case_login_field(login) || klass.new(login_field => login)) end |
#set_record ⇒ Object
Set the record information associated with this PDS user.
11 12 13 14 15 16 17 |
# File 'lib/authpds/session/record.rb', line 11 def set_record self.attempted_record = get_record(pds_user.send(pds_record_identifier)) self.attempted_record.expiration_date = expiration_date # Do this part only if user data has expired. reset_record attempted_record if self.attempted_record.expired? self.attempted_record.user_attributes= additional_attributes end |