Class: Inferno::Repositories::Requests::Model

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

Instance Method Summary collapse

Instance Method Details

#before_createObject



80
81
82
83
84
85
86
# File 'lib/inferno/repositories/requests.rb', line 80

def before_create
  self.id = SecureRandom.uuid
  time = Time.now
  self.created_at ||= time
  self.updated_at ||= time
  super
end