aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorZog2018-03-13 10:41:48 +0100
committerJohan Van Ryseghem2018-04-04 11:10:39 +0200
commitd034376737c27e48a7a3413b82461a65999ee105 (patch)
treec657811ee569ce1f2487c07f921fdae3382eb726 /app/helpers/application_helper.rb
parenta77307ca49c57dc18823f6aece2424ccb3c5a7c2 (diff)
downloadchouette-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/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 479b661c8..a0c6796ea 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -136,5 +136,9 @@ module ApplicationHelper
url_for(:controller => "/help", :action => "show") + '/' + target
end
-
+ def permitted_custom_fields_params custom_fields
+ [{
+ custom_field_values: custom_fields.map(&:code)
+ }]
+ end
end