Sha256: 8ad4c689c8af035074a7034b508041b930ec1234e93d41419e4ca0513429bed7
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
module Unidom::Certificate::Concerns::AsCertificator extend ActiveSupport::Concern self.included do |includer| has_many :certificatings, class_name: 'Unidom::Certificate::Certificating', as: :certificator def certificate!(certificated: certificated, certification: certification, opened_at: Time.now) certificatings.create! certificated: certificated, certification: certification, opened_at: opened_at end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-certificate-1.0 | app/models/unidom/certificate/concerns/as_certificator.rb |