Sha256: 893541ff9a772bb557b6a7ed801c6baf83be53033339b9d0ddd504708b0af214
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
module ActiveRoad class JunctionConditionnalCost < ActiveRoad::Base attr_accessible :tags, :cost, :start_physical_road, :end_physical_road belongs_to :junction belongs_to :start_physical_road, :class_name => 'ActiveRoad::PhysicalRoad', :foreign_key => 'start_physical_road_id' belongs_to :end_physical_road, :class_name => 'ActiveRoad::PhysicalRoad', :foreign_key => 'end_physical_road_id' validates_presence_of :junction_id validates_presence_of :tags validates_uniqueness_of :tags validates_presence_of :cost end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_road-0.0.3 | app/models/active_road/junction_conditionnal_cost.rb |