Class: Masks::Credentials::LastLogin

Inherits:
Masks::Credential show all
Defined in:
app/models/masks/credentials/last_login.rb

Overview

As of now, simply keeps track of last_login times on the actor.

Instance Method Summary collapse

Methods inherited from Masks::Credential

#backup!, #check, checks, #cleanup, #cleanup!, #lookup, #mask!, #maskup, #name, #patch_params, #slug

Instance Method Details

#backupObject



7
8
9
# File 'app/models/masks/credentials/last_login.rb', line 7

def backup
  actor&.touch(:last_login_at) if session&.passed?
end