Sha256: d0e35bdf23bd2e6baf50c2faa346de90d86a81709ad9db6b7f6826b9eb930fe6
Contents?: true
Size: 386 Bytes
Versions: 2
Compression:
Stored size: 386 Bytes
Contents
module Unidom::Certificate::Concerns::AsCertification extend ActiveSupport::Concern self.included do |includer| has_many :certificatings, class_name: 'Unidom::Certificate::Certificating', as: :certification def certificate!(certificated, by: nil, at: Time.now) certificatings.create! certificated: certificated, certificator: by, opened_at: at end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unidom-certificate-1.2.1 | app/models/unidom/certificate/concerns/as_certification.rb |
unidom-certificate-1.2 | app/models/unidom/certificate/concerns/as_certification.rb |