From 030d07718bde5fb9bbb165e06e7d2269c9217190 Mon Sep 17 00:00:00 2001 From: Thomas Haddad Date: Thu, 2 Mar 2017 17:04:09 +0100 Subject: Refs #2522: use Bselect2 to link a jp to a vj Signed-off-by: Thomas Shawarma Haddad --- app/views/api/v1/journey_patterns/show.rabl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/api') 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 -- cgit v1.2.3