diff options
| author | Thomas Haddad | 2016-11-09 16:38:09 +0100 | 
|---|---|---|
| committer | Thomas Haddad | 2016-11-09 16:40:26 +0100 | 
| commit | 721532c9fb90ea55851dff8d51bfa29dd3209c4c (patch) | |
| tree | b8ce596a4b3a10bf7edf82193b8cca1c86640976 /app/helpers/routes_helper.rb | |
| parent | 1d1c449573811f16e4360622d7c9baf27cf0aa72 (diff) | |
| download | chouette-core-721532c9fb90ea55851dff8d51bfa29dd3209c4c.tar.bz2 | |
Fix generate hidden inputs when submitting
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.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb index 159c93054..71017fd13 100644 --- a/app/helpers/routes_helper.rb +++ b/app/helpers/routes_helper.rb @@ -13,4 +13,8 @@ module RoutesHelper      end    end +  def route_json_for_edit(route) +    route.stop_points.includes(:stop_area).map { |s| s.stop_area.attributes.slice("name","city_name", "zip_code").merge(stoppoint_id: s.id, stoparea_id: s.stop_area.id) }.to_json +  end +  end | 
