Sha256: 1a55138df60a120a00ddb44769e9814f3431d642bdeeb1624cde0d0110ced437
Contents?: true
Size: 543 Bytes
Versions: 45
Compression:
Stored size: 543 Bytes
Contents
module Inferno module Repositories class Headers < Repository class Model < Sequel::Model(db) many_to_one :request, class: 'Inferno::Repositories::Requests::Model', key: :request_id def before_create self.id = SecureRandom.uuid time = Time.now self.created_at ||= time self.updated_at ||= time super end def validate super errors.add(:request_id, 'must be present') if request_id.blank? end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems