aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorZog2017-12-28 17:07:37 +0100
committerZog2018-01-10 09:29:44 +0100
commit3bc583b1e727f0cf27e0aef8ef94121dd693cd86 (patch)
treed03a9973571eabcb180961c9a485137e62d5ea19 /app/controllers
parentb4d016c8aa2e671e2b5a492d7e742d5166069495 (diff)
downloadchouette-core-3bc583b1e727f0cf27e0aef8ef94121dd693cd86.tar.bz2
Refs #5437 @0.5h; Show country name instead of city in the journeys editor
When the organisation has the "long_distance_routes" features. Mind the `StopArea#country_name` method which is pending until we merge the branch which adds the countries support.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/vehicle_journeys_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/vehicle_journeys_controller.rb b/app/controllers/vehicle_journeys_controller.rb
index c03db0c7f..887131557 100644
--- a/app/controllers/vehicle_journeys_controller.rb
+++ b/app/controllers/vehicle_journeys_controller.rb
@@ -69,6 +69,7 @@ class VehicleJourneysController < ChouetteController
:latitude => sp.stop_area.try(:latitude),
:long_lat_type => sp.stop_area.try(:long_lat_type),
:country_code => sp.stop_area.try(:country_code),
+ :country_name => sp.stop_area.try(:country_name),
:street_name => sp.stop_area.try(:street_name)
}
end