aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/api
diff options
context:
space:
mode:
authorThomas Haddad2017-03-09 18:06:30 +0100
committerThomas Haddad2017-03-09 18:06:30 +0100
commitf14fbad37c0daa0b79aaf12b234168e917b29cee (patch)
treee5149f670c704b5cc7b11f5063bad16125d8ae5e /app/views/api
parentf4c5751a4037f52ab1d73fc201e81ba07798ecd4 (diff)
parent3ec5c7bf65b267ce96431906feb6025cfbff347a (diff)
downloadchouette-core-f14fbad37c0daa0b79aaf12b234168e917b29cee.tar.bz2
Merge branch '2498_vehicle_journeys'
Diffstat (limited to 'app/views/api')
-rw-r--r--app/views/api/v1/journey_patterns/show.rabl2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/api/v1/journey_patterns/show.rabl b/app/views/api/v1/journey_patterns/show.rabl
index 808808462..21f25e480 100644
--- a/app/views/api/v1/journey_patterns/show.rabl
+++ b/app/views/api/v1/journey_patterns/show.rabl
@@ -1,7 +1,7 @@
object @journey_pattern
extends "api/v1/trident_objects/show"
-[:name, :published_name, :registration_number, :comment].each do |attr|
+[:id, :name, :published_name, :registration_number, :comment].each do |attr|
attributes attr, :unless => lambda { |m| m.send( attr).nil?}
end