diff options
| author | Zog | 2018-03-13 10:41:48 +0100 | 
|---|---|---|
| committer | Johan Van Ryseghem | 2018-04-04 11:10:39 +0200 | 
| commit | d034376737c27e48a7a3413b82461a65999ee105 (patch) | |
| tree | c657811ee569ce1f2487c07f921fdae3382eb726 /app/controllers | |
| parent | a77307ca49c57dc18823f6aece2424ccb3c5a7c2 (diff) | |
| download | chouette-core-d034376737c27e48a7a3413b82461a65999ee105.tar.bz2 | |
Refs #6090; CustomFields inputs made easy
:warning: We'll have to refine this code once StopArea are linked to
workgroups
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/stop_areas_controller.rb | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/app/controllers/stop_areas_controller.rb b/app/controllers/stop_areas_controller.rb index d0d9f652d..b2634467d 100644 --- a/app/controllers/stop_areas_controller.rb +++ b/app/controllers/stop_areas_controller.rb @@ -161,7 +161,7 @@ class StopAreasController < ChouetteController    helper_method :current_referential    def stop_area_params -    params.require(:stop_area).permit( +    fields = [        :area_type,        :children_ids,        :city_name, @@ -192,7 +192,8 @@ class StopAreasController < ChouetteController        :kind,        :status,        localized_names: Chouette::StopArea::AVAILABLE_LOCALIZATIONS -    ) +    ] + permitted_custom_fields_params(Chouette::StopArea.custom_fields) # XXX filter on the workgroup +    params.require(:stop_area).permit(fields)    end     # Fake ransack filter | 
