From 74359c8f9a50fd90202f31ed4bcaa45f335af22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Meny?= Date: Wed, 3 Aug 2022 12:44:14 +0100 Subject: [PATCH] Remove print statements and warnings --- app/controllers/users_controller.rb | 8 ++------ app/views/users/new.html.erb | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) 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" } %>