diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 7f6b2db35..c22570a2e 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -30,13 +30,9 @@ class UsersController < ApplicationController def show; end - def dpo - pp params - end + def dpo; end - def key_contact - pp params - end + def key_contact; end def edit redirect_to user_path(@user) unless @user.active? diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 76c931027..87b21fd43 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -50,7 +50,7 @@ :id, :name, lambda { |option| - option.description&.sum("") { |hint| content_tag(:li, hint) } + option.description&.map{ |hint| content_tag(:li, hint) }&.reduce(:+) }, legend: { text: "Role", size: "m" } %>