diff options
| author | Luc Donnet | 2014-08-21 14:00:12 +0200 |
|---|---|---|
| committer | Luc Donnet | 2014-08-21 14:00:12 +0200 |
| commit | 609a15c4eda1d2af30fd5c3a5a59ced3070da8e4 (patch) | |
| tree | aba895248f4085b1228daaf7679cadc720db107e /app/controllers | |
| parent | 6a60bd6dd570c62956929aa5f51abb974e190260 (diff) | |
| download | chouette-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.rb | 8 |
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 |
