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
|
Enabled: false
|
||||||
|
|
||||||
Layout/FirstParameterIndentation:
|
Layout/FirstParameterIndentation:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
Layout/IndentArray:
|
Layout/IndentArray:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
|
@ -40,9 +40,11 @@ class Admin::GestionnairesController < AdminController
|
||||||
attributes = params.require(:gestionnaire).permit(:email)
|
attributes = params.require(:gestionnaire).permit(:email)
|
||||||
.merge(password: SecureRandom.hex(5))
|
.merge(password: SecureRandom.hex(5))
|
||||||
|
|
||||||
@gestionnaire = Gestionnaire.create(attributes.merge(
|
@gestionnaire = Gestionnaire.create(
|
||||||
|
attributes.merge(
|
||||||
administrateurs: [current_administrateur]
|
administrateurs: [current_administrateur]
|
||||||
))
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if @gestionnaire.errors.messages.empty?
|
if @gestionnaire.errors.messages.empty?
|
||||||
User.create(attributes)
|
User.create(attributes)
|
||||||
|
|
|
@ -101,6 +101,7 @@ class Admin::ProceduresController < AdminController
|
||||||
procedure: procedure,
|
procedure: procedure,
|
||||||
administrateur: procedure.administrateur
|
administrateur: procedure.administrateur
|
||||||
})
|
})
|
||||||
|
|
||||||
if new_procedure_path.validate
|
if new_procedure_path.validate
|
||||||
new_procedure_path.delete
|
new_procedure_path.delete
|
||||||
else
|
else
|
||||||
|
|
|
@ -35,10 +35,10 @@ class RootController < ApplicationController
|
||||||
.each do |champ|
|
.each do |champ|
|
||||||
champ.type_de_champ.drop_down_list = DropDownList.new(type_de_champ: champ.type_de_champ)
|
champ.type_de_champ.drop_down_list = DropDownList.new(type_de_champ: champ.type_de_champ)
|
||||||
champ.drop_down_list.value =
|
champ.drop_down_list.value =
|
||||||
"option A
|
"option A
|
||||||
option B
|
option B
|
||||||
-- avant l'option C --
|
-- avant l'option C --
|
||||||
option C"
|
option C"
|
||||||
champ.value = '["option B", "option C"]'
|
champ.value = '["option B", "option C"]'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue