aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haddad2017-01-24 17:50:27 +0100
committerThomas Haddad2017-01-24 17:50:27 +0100
commita31cd171e81788347b94d36444dd32b4d911b71c (patch)
tree055454e5cbd12d7cff0f43cce21b8b1f2eea790f
parentc4b2f1ff62b70e7e20c0350e2d3128525217d73c (diff)
downloadchouette-core-a31cd171e81788347b94d36444dd32b4d911b71c.tar.bz2
Refs #2405: Add registration number to stop area attributes in route helper for stopAreas
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
-rw-r--r--app/helpers/routes_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb
index b55308eb8..d3bbdd323 100644
--- a/app/helpers/routes_helper.rb
+++ b/app/helpers/routes_helper.rb
@@ -15,7 +15,7 @@ module RoutesHelper
def route_json_for_edit(route)
route.stop_points.includes(:stop_area).map do |stop_point|
- stop_area_attributes = stop_point.stop_area.attributes.slice("name","city_name", "zip_code")
+ stop_area_attributes = stop_point.stop_area.attributes.slice("name","city_name", "zip_code", "registration_number")
stop_point_attributes = stop_point.attributes.slice("for_boarding","for_alighting")
stop_area_attributes.merge(stop_point_attributes).merge(stoppoint_id: stop_point.id, stoparea_id: stop_point.stop_area.id).merge(user_objectid: stop_point.stop_area.user_objectid)
end.to_json