aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/routes_helper.rb
diff options
context:
space:
mode:
authorThomas Haddad2017-01-27 11:41:29 +0100
committerThomas Haddad2017-01-27 11:41:29 +0100
commit0f8e49601af5a3adeacfe593d14332da8c25ce23 (patch)
treed7a9afce2100e99a9aa7cf5985f10d3c02eb7662 /app/helpers/routes_helper.rb
parent76f6203a96a035af6b5e9d03c86a7b48619dd040 (diff)
downloadchouette-core-0f8e49601af5a3adeacfe593d14332da8c25ce23.tar.bz2
Add lon lat in route helper
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'app/helpers/routes_helper.rb')
-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 d3bbdd323..40c1278f7 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", "registration_number")
+ stop_area_attributes = stop_point.stop_area.attributes.slice("name","city_name", "zip_code", "registration_number", "longitude", "latitude")
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