diff options
| author | Thomas Haddad | 2017-02-28 16:07:35 +0100 |
|---|---|---|
| committer | Thomas Haddad | 2017-02-28 16:07:35 +0100 |
| commit | a35eab7410b00ab59e42b8e6ccb459b466f9603d (patch) | |
| tree | 63a7d9861ca988e1e0501988673cd359a8d2846f | |
| parent | 496cb95c40d2108a89ec6c3aef534ab496066861 (diff) | |
| download | chouette-core-a35eab7410b00ab59e42b8e6ccb459b466f9603d.tar.bz2 | |
Add stop_area name in rabl (for edit title)
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
| -rw-r--r-- | app/views/vehicle_journeys/show.rabl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/vehicle_journeys/show.rabl b/app/views/vehicle_journeys/show.rabl index 9caf13301..ccb55e625 100644 --- a/app/views/vehicle_journeys/show.rabl +++ b/app/views/vehicle_journeys/show.rabl @@ -22,6 +22,7 @@ end child :vehicle_journey_at_stops, :object_root => false do |vehicle_stops| node do |vehicle_stop| node(:stop_area_object_id) { vehicle_stop.stop_point.stop_area.objectid } + node(:stop_area_name) {vehicle_stop.stop_point.stop_area.name} [:id, :connecting_service_id, :boarding_alighting_possibility].map do |att| node(att) { vehicle_stop.send(att) } unless vehicle_stop.send(att).nil? end |
