Sha256: b48e87dced963802dc25affe7df84fe1f0c52f5cb9f08904531d633fa6ae4fed

Contents?: true

Size: 224 Bytes

Versions: 9

Compression:

Stored size: 224 Bytes

Contents

module Logistics
  module Core
    class WithinCityRoute < Route
      validates :node_id, :zone, :radius, presence: true, allow_blank: false
      validates :node_id, uniqueness: {scope: [:node_id, :zone]}
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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