diff options
| author | Thomas Haddad | 2016-12-19 12:07:48 +0100 | 
|---|---|---|
| committer | Thomas Haddad | 2016-12-19 12:07:48 +0100 | 
| commit | dfa3e092c2e23db62cd348040dfcb4e5d210bf48 (patch) | |
| tree | 8501209d5795c3ca97f38cb58cb7690b870d36b1 /app/views/api | |
| parent | 80111503d7b0a50b3e6109f2fbbb93fa38689b73 (diff) | |
| download | chouette-core-dfa3e092c2e23db62cd348040dfcb4e5d210bf48.tar.bz2 | |
Fix stopAreas array, add stopArea id in json, and is now properly rendered
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Signed-off-by: Jean-Paul Lescouzeres <jean-paul.lescouzeres@af83.com>
Diffstat (limited to 'app/views/api')
| -rw-r--r-- | app/views/api/v1/stop_areas/short_description.rabl | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/app/views/api/v1/stop_areas/short_description.rabl b/app/views/api/v1/stop_areas/short_description.rabl index 7b6a72491..fb0213510 100644 --- a/app/views/api/v1/stop_areas/short_description.rabl +++ b/app/views/api/v1/stop_areas/short_description.rabl @@ -1,7 +1,7 @@  object @stop_area  extends "api/v1/trident_objects/short_description" -[ :name, :area_type, :longitude, :latitude, :long_lat_type].each do |attr| +[ :id, :name, :area_type, :longitude, :latitude, :long_lat_type].each do |attr|      attributes attr, :unless => lambda { |m| m.send( attr).nil?}  end  node(:parent_object_id) do |stop_area| | 
