Sha256: 21b7adb4ad6a6739bbb0f06bd34b7da7f2d54e4b93083f3f0c2a65d19a01f86f

Contents?: true

Size: 330 Bytes

Versions: 9

Compression:

Stored size: 330 Bytes

Contents

module Logistics
  module Core
    class AdditionalDocument < ApplicationRecord
      belongs_to :document_type
      belongs_to :documentable, polymorphic: true
      belongs_to :transaction_type

      delegate(:name, to: :document_type, prefix: true)
      delegate(:name, to: :transaction_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/additional_document.rb
logistics_core-21.11.1 app/models/logistics/core/additional_document.rb
logistics_core-21.08.1 app/models/logistics/core/additional_document.rb
logistics_core-21.03.1 app/models/logistics/core/additional_document.rb
logistics_core-20.10.3 app/models/logistics/core/additional_document.rb
logistics_core-20.10.2 app/models/logistics/core/additional_document.rb
logistics_core-20.10.1 app/models/logistics/core/additional_document.rb
logistics_core-20.9.1 app/models/logistics/core/additional_document.rb
logistics_core-20.8.1 app/models/logistics/core/additional_document.rb