aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorLuc Donnet2014-08-21 14:00:12 +0200
committerLuc Donnet2014-08-21 14:00:12 +0200
commit609a15c4eda1d2af30fd5c3a5a59ced3070da8e4 (patch)
treeaba895248f4085b1228daaf7679cadc720db107e /app/controllers
parent6a60bd6dd570c62956929aa5f51abb974e190260 (diff)
downloadchouette-core-609a15c4eda1d2af30fd5c3a5a59ced3070da8e4.tar.bz2
Add search stop_area token input for formtastic
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/connection_link_areas_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/connection_link_areas_controller.rb b/app/controllers/connection_link_areas_controller.rb
index 40f029801..95b963b6b 100644
--- a/app/controllers/connection_link_areas_controller.rb
+++ b/app/controllers/connection_link_areas_controller.rb
@@ -10,7 +10,13 @@ class ConnectionLinkAreasController < ChouetteController
def areas_maps
areas.collect do |area|
- { :id => area.id.to_s, :name => "#{area.name} #{area.country_code}" }
+ { :id => area.id.to_s,
+ :name => area.name,
+ :country_code => area.country_code,
+ :zip_code => area.zip_code || "",
+ :city_name => area.city_name || "",
+ :area_type => area.area_type
+ }
end
end