diff options
| author | Alban Peignier | 2018-03-15 09:57:53 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-03-15 10:10:29 +0100 |
| commit | 3036b52aea082c12dec82d463936dae29643cb22 (patch) | |
| tree | 5fb93f87993eacdbac52ac57325a79066ae7b171 /app/helpers/stop_areas_helper.rb | |
| parent | 7cef201f206f1b95ece9b28a07b384a3fb88d7c9 (diff) | |
| download | chouette-core-3036b52aea082c12dec82d463936dae29643cb22.tar.bz2 | |
Add StopArea#status in stop_areas#_form. Refs #60336033-stop-area-states
Diffstat (limited to 'app/helpers/stop_areas_helper.rb')
| -rw-r--r-- | app/helpers/stop_areas_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/stop_areas_helper.rb b/app/helpers/stop_areas_helper.rb index 631dbfc3c..1c9d974a1 100644 --- a/app/helpers/stop_areas_helper.rb +++ b/app/helpers/stop_areas_helper.rb @@ -84,4 +84,10 @@ module StopAreasHelper end end + def stop_area_status_options + Chouette::StopArea.statuses.map do |status| + [ t(status, scope: 'activerecord.attributes.stop_area'), status ] + end + end + end |
