Class: Inferno::Repositories::ValidatorSessions::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/inferno/repositories/validator_sessions.rb

Instance Method Summary collapse

Instance Method Details

#before_saveObject



51
52
53
54
# File 'lib/inferno/repositories/validator_sessions.rb', line 51

def before_save
  time = Time.now
  self.last_accessed ||= time
end