diff options
| author | Zog | 2018-01-04 09:14:45 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-08 08:18:58 +0100 | 
| commit | 643ef3655a6dbb10d8e0dc53048b57124dabf325 (patch) | |
| tree | a80e86e8727df6fdbf3f3529d47825039b2dd237 /app/views/api | |
| parent | 03d09ef4c5c381a77e0aad871c8f4935e9be4393 (diff) | |
| download | chouette-core-643ef3655a6dbb10d8e0dc53048b57124dabf325.tar.bz2 | |
Refs #5455; Optimize controllers for the Journey Patterns editor
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 | 
