class Inferno::Repositories::Headers::Model

Public Instance Methods

before_create() click to toggle source
Calls superclass method
# File lib/inferno/repositories/headers.rb, line 7
def before_create
  self.id = SecureRandom.uuid
  time = Time.now
  self.created_at ||= time
  self.updated_at ||= time
  super
end
validate() click to toggle source
Calls superclass method
# File lib/inferno/repositories/headers.rb, line 15
def validate
  super
  errors.add(:request_id, 'must be present') if request_id.blank?
end