Sha256: da4a20c883e7e31fb31224c03df13d57e305add145d4fcec4150af5e55bcde26

Contents?: true

Size: 312 Bytes

Versions: 9

Compression:

Stored size: 312 Bytes

Contents

module Logistics
  module Core
    class DeclarationType < ApplicationRecord
      belongs_to :transaction_type
      has_many :additional_documents, :as => :documentable
      delegate(:name, to: :transaction_type, prefix: true)

      validates :code, :name, :transaction_type, presence: 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/declaration_type.rb
logistics_core-21.11.1 app/models/logistics/core/declaration_type.rb
logistics_core-21.08.1 app/models/logistics/core/declaration_type.rb
logistics_core-21.03.1 app/models/logistics/core/declaration_type.rb
logistics_core-20.10.3 app/models/logistics/core/declaration_type.rb
logistics_core-20.10.2 app/models/logistics/core/declaration_type.rb
logistics_core-20.10.1 app/models/logistics/core/declaration_type.rb
logistics_core-20.9.1 app/models/logistics/core/declaration_type.rb
logistics_core-20.8.1 app/models/logistics/core/declaration_type.rb