Sha256: 4e56538dac8f05a158e50ae06f43afd4bcf09a88950d184ba115d5f13392abfc

Contents?: true

Size: 435 Bytes

Versions: 9

Compression:

Stored size: 435 Bytes

Contents

module Logistics
  module Core
    class CustomsTransportTariff < ApplicationRecord
      belongs_to :route
      belongs_to :entry_point
      validates :route, :entry_point, :total_distance, :distance_to_entry_point, :proportion, presence: true
      validates_uniqueness_of :route, :scope => :entry_point

      delegate(:name, to: :entry_point, prefix: true)
      delegate(:route_name, to: :route, prefix: false)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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