Sha256: 0a55deb58b07ff850b5153a54cabe83f214bf56c97945c97d9c86f65500d641e

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 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, opened_at: Time.now)
      certificatings.create! certificated: certificated, 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_certification.rb