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