aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorThomas Haddad2017-03-02 17:04:09 +0100
committerThomas Haddad2017-03-02 17:04:09 +0100
commit030d07718bde5fb9bbb165e06e7d2269c9217190 (patch)
tree39f8e53c96bbf7e31a3c7b799ef98670237608c8 /app/views
parentb373f06c85f3d9fd511ed2df4b38065bb18315e0 (diff)
downloadchouette-core-030d07718bde5fb9bbb165e06e7d2269c9217190.tar.bz2
Refs #2522: use Bselect2 to link a jp to a vj
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'app/views')
-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