diff options
Diffstat (limited to 'app/views/api')
| -rw-r--r-- | app/views/api/v1/journey_patterns/show.rabl | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/app/views/api/v1/journey_patterns/show.rabl b/app/views/api/v1/journey_patterns/show.rabl index 67d483147..815b1cf0b 100644 --- a/app/views/api/v1/journey_patterns/show.rabl +++ b/app/views/api/v1/journey_patterns/show.rabl @@ -14,11 +14,12 @@ node(:route_short_description) do |journey_pattern|  end  node(:vehicle_journey_object_ids) do |journey_pattern| -  journey_pattern.vehicle_journeys.map(&:objectid) +  journey_pattern.vehicle_journeys.pluck(:objectid)  end unless root_object.vehicle_journeys.empty?  child :stop_points => :stop_area_short_descriptions do |stop_points|    node do |stop_point| +    cache stop_point.stop_area_id      partial("api/v1/stop_areas/short_description", :object => stop_point.stop_area)    end  end | 
