diff options
| author | Zog | 2018-04-18 16:14:54 +0200 | 
|---|---|---|
| committer | cedricnjanga | 2018-04-19 23:12:34 -0700 | 
| commit | e6567cbfc987d8488492e2b1ce66a03db3a3d37d (patch) | |
| tree | dbace69e87473783624c89e3351be153ba7f9bed /app/models/chouette/stop_point.rb | |
| parent | 7c0ce4a2f39f6d7386734016452c594ee7ee8797 (diff) | |
| download | chouette-core-e6567cbfc987d8488492e2b1ce66a03db3a3d37d.tar.bz2 | |
Refs #6193; Show journey length in VJs editor
If `journey_length_in_vehicle_journeys` feature is enabled
Diffstat (limited to 'app/models/chouette/stop_point.rb')
| -rw-r--r-- | app/models/chouette/stop_point.rb | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/app/models/chouette/stop_point.rb b/app/models/chouette/stop_point.rb index 1df1a664a..6f2d89578 100644 --- a/app/models/chouette/stop_point.rb +++ b/app/models/chouette/stop_point.rb @@ -9,7 +9,6 @@ module Chouette      include ForAlightingEnumerations      include ObjectidSupport -      belongs_to :stop_area      belongs_to :route, inverse_of: :stop_points      has_many :vehicle_journey_at_stops, :dependent => :destroy @@ -17,7 +16,6 @@ module Chouette      acts_as_list :scope => :route, top_of_list: 0 -      validates_presence_of :stop_area      validate :stop_area_id_validation      def stop_area_id_validation @@ -28,7 +26,7 @@ module Chouette      scope :default_order, -> { order("position") } -    delegate :name, to: :stop_area +    delegate :name, :kind, :area_type, to: :stop_area      before_destroy :remove_dependent_journey_pattern_stop_points      def remove_dependent_journey_pattern_stop_points | 
