From f1fd7b26ed4f54abcb7304a4aaa2bb7d5a2dcb14 Mon Sep 17 00:00:00 2001 From: Thomas Haddad Date: Fri, 3 Mar 2017 14:35:54 +0100 Subject: Fix time_tables attributes in rabl Signed-off-by: Thomas Shawarma Haddad Signed-off-by: Xinhui Xu --- app/views/autocomplete_time_tables/index.rabl | 2 +- app/views/vehicle_journeys/show.rabl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/autocomplete_time_tables/index.rabl b/app/views/autocomplete_time_tables/index.rabl index 0389c26b0..8ec7b314e 100644 --- a/app/views/autocomplete_time_tables/index.rabl +++ b/app/views/autocomplete_time_tables/index.rabl @@ -1,7 +1,7 @@ collection @time_tables, :object_root => false node do |time_table| - { :id => time_table.id, :comment => time_table.comment, + { :id => time_table.id, :comment => time_table.comment, :objectid => time_table.objectid, :time_table_bounding => time_table.presenter.time_table_bounding, :composition_info => time_table.presenter.composition_info, :tags => time_table.tags.join(','), diff --git a/app/views/vehicle_journeys/show.rabl b/app/views/vehicle_journeys/show.rabl index 209b8371d..620b6430e 100644 --- a/app/views/vehicle_journeys/show.rabl +++ b/app/views/vehicle_journeys/show.rabl @@ -9,7 +9,7 @@ child(:journey_pattern) do |journey_pattern| end child(:time_tables, :object_root => false) do |time_tables| - attributes :objectid, :comment + attributes :id, :objectid, :comment child(:calendar) do attributes :id, :name, :date_ranges, :dates, :shared end -- cgit v1.2.3