diff options
| author | Zog | 2018-01-10 18:24:54 +0100 |
|---|---|---|
| committer | Zog | 2018-01-10 18:30:45 +0100 |
| commit | c8a2e2ce194d3d051bb96522c40c4d34392bdf8e (patch) | |
| tree | c27486119d91687fa9a5dd31b2c1363122d49bd9 /app/views | |
| parent | 5c3abf69c50f00e0caab1517be2beccca10e635b (diff) | |
| download | chouette-core-c8a2e2ce194d3d051bb96522c40c4d34392bdf8e.tar.bz2 | |
Refs #5535 @2H; Automatically fill VJs tilmes when possible
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/api/v1/journey_patterns/show.rabl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/views/api/v1/journey_patterns/show.rabl b/app/views/api/v1/journey_patterns/show.rabl index 815b1cf0b..ba63a35c7 100644 --- a/app/views/api/v1/journey_patterns/show.rabl +++ b/app/views/api/v1/journey_patterns/show.rabl @@ -5,13 +5,17 @@ extends "api/v1/trident_objects/show" attributes attr, :unless => lambda { |m| m.send( attr).nil?} end +node :full_schedule do |journey_pattern| + journey_pattern.full_schedule? +end + if has_feature? :costs_in_journey_patterns attribute :costs + node(:route_short_description) do |journey_pattern| + partial("api/v1/routes/short_description", :object => journey_pattern.route) + end end -node(:route_short_description) do |journey_pattern| - partial("api/v1/routes/short_description", :object => journey_pattern.route) -end node(:vehicle_journey_object_ids) do |journey_pattern| journey_pattern.vehicle_journeys.pluck(:objectid) |
