Browse Source

Remove print statements and warnings

pull/787/head
Stéphane Meny 3 years ago
parent
commit
74359c8f9a
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 8
      app/controllers/users_controller.rb
  2. 2
      app/views/users/new.html.erb

8
app/controllers/users_controller.rb

@ -30,13 +30,9 @@ class UsersController < ApplicationController
def show; end def show; end
def dpo def dpo; end
pp params
end
def key_contact def key_contact; end
pp params
end
def edit def edit
redirect_to user_path(@user) unless @user.active? redirect_to user_path(@user) unless @user.active?

2
app/views/users/new.html.erb

@ -50,7 +50,7 @@
:id, :id,
:name, :name,
lambda { |option| lambda { |option|
option.description&.sum("") { |hint| content_tag(:li, hint) } option.description&.map{ |hint| content_tag(:li, hint) }&.reduce(:+)
}, },
legend: { text: "Role", size: "m" } %> legend: { text: "Role", size: "m" } %>

Loading…
Cancel
Save