Enable the Layout/FirstParameterIndentation cop

This commit is contained in:
gregoirenovel 2018-01-15 18:48:14 +01:00
parent 9f855afdfe
commit 5125cf8396
10 changed files with 53 additions and 50 deletions

View file

@ -95,7 +95,7 @@ Layout/FirstMethodParameterLineBreak:
Enabled: false
Layout/FirstParameterIndentation:
Enabled: false
Enabled: true
Layout/IndentArray:
Enabled: false

View file

@ -40,9 +40,11 @@ class Admin::GestionnairesController < AdminController
attributes = params.require(:gestionnaire).permit(:email)
.merge(password: SecureRandom.hex(5))
@gestionnaire = Gestionnaire.create(attributes.merge(
@gestionnaire = Gestionnaire.create(
attributes.merge(
administrateurs: [current_administrateur]
))
)
)
if @gestionnaire.errors.messages.empty?
User.create(attributes)

View file

@ -101,6 +101,7 @@ class Admin::ProceduresController < AdminController
procedure: procedure,
administrateur: procedure.administrateur
})
if new_procedure_path.validate
new_procedure_path.delete
else

View file

@ -35,10 +35,10 @@ class RootController < ApplicationController
.each do |champ|
champ.type_de_champ.drop_down_list = DropDownList.new(type_de_champ: champ.type_de_champ)
champ.drop_down_list.value =
"option A
option B
-- avant l'option C --
option C"
"option A
option B
-- avant l'option C --
option C"
champ.value = '["option B", "option C"]'
end