aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/chouette/stop_point.rb
diff options
context:
space:
mode:
authorLuc Donnet2018-05-28 22:33:13 +0200
committerGitHub2018-05-28 22:33:13 +0200
commit3de76935e461c2b1302a086817d7d65ec6436b73 (patch)
tree72125eeed7043affd971fc3eba913e5396309741 /app/models/chouette/stop_point.rb
parent4667e76f5280cf40f9ee494c6764182970760132 (diff)
parentb060a1901a18e24e8925cf65ca566d75c03cee32 (diff)
downloadchouette-core-3de76935e461c2b1302a086817d7d65ec6436b73.tar.bz2
Merge pull request #580 from af83/7031-fox-consolidated-view
7031 Css fixes on Consolidated view
Diffstat (limited to 'app/models/chouette/stop_point.rb')
-rw-r--r--app/models/chouette/stop_point.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/chouette/stop_point.rb b/app/models/chouette/stop_point.rb
index edb0e81fd..82bedc6ab 100644
--- a/app/models/chouette/stop_point.rb
+++ b/app/models/chouette/stop_point.rb
@@ -10,6 +10,7 @@ module Chouette
include ObjectidSupport
belongs_to :stop_area
+ belongs_to :stop_area_light, -> {select(:name, :city_name, :zip_code, :time_zone)}, class_name: "Chouette::StopArea", foreign_key: :stop_area_id
belongs_to :route, inverse_of: :stop_points
has_many :journey_patterns, through: :route
has_many :vehicle_journey_at_stops, :dependent => :destroy
@@ -27,7 +28,7 @@ module Chouette
scope :default_order, -> { order("position") }
- delegate :name, :registration_number, :kind, :area_type, to: :stop_area
+ delegate :name, :registration_number, :kind, :area_type, to: :stop_area_light
before_destroy :remove_dependent_journey_pattern_stop_points
def remove_dependent_journey_pattern_stop_points