Enable the Layout/FirstParameterIndentation cop
This commit is contained in:
parent
9f855afdfe
commit
5125cf8396
10 changed files with 53 additions and 50 deletions
|
@ -95,7 +95,7 @@ Layout/FirstMethodParameterLineBreak:
|
|||
Enabled: false
|
||||
|
||||
Layout/FirstParameterIndentation:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
Layout/IndentArray:
|
||||
Enabled: false
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -101,6 +101,7 @@ class Admin::ProceduresController < AdminController
|
|||
procedure: procedure,
|
||||
administrateur: procedure.administrateur
|
||||
})
|
||||
|
||||
if new_procedure_path.validate
|
||||
new_procedure_path.delete
|
||||
else
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue