Sha256: 011dc9974b877251e40d4f0d1c497fef925ec80908857d827a2423b39b99a986

Contents?: true

Size: 247 Bytes

Versions: 9

Compression:

Stored size: 247 Bytes

Contents

module Logistics
  module Core
    class CommonDocument < ApplicationRecord
      belongs_to :document_type
      validates :document_type, presence: true, uniqueness: true

      delegate(:name, to: :document_type, prefix: true)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 app/models/logistics/core/common_document.rb
logistics_core-21.11.1 app/models/logistics/core/common_document.rb
logistics_core-21.08.1 app/models/logistics/core/common_document.rb
logistics_core-21.03.1 app/models/logistics/core/common_document.rb
logistics_core-20.10.3 app/models/logistics/core/common_document.rb
logistics_core-20.10.2 app/models/logistics/core/common_document.rb
logistics_core-20.10.1 app/models/logistics/core/common_document.rb
logistics_core-20.9.1 app/models/logistics/core/common_document.rb
logistics_core-20.8.1 app/models/logistics/core/common_document.rb