Enable Style/SymbolArray
This commit is contained in:
parent
2004b9a864
commit
c91a1cf474
7 changed files with 10 additions and 9 deletions
|
@ -1199,7 +1199,8 @@ Style/StructInheritance:
|
|||
Enabled: false
|
||||
|
||||
Style/SymbolArray:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
EnforcedStyle: brackets
|
||||
|
||||
Style/SymbolLiteral:
|
||||
Enabled: true
|
||||
|
|
|
@ -143,7 +143,7 @@ class ApplicationController < ActionController::Base
|
|||
elsif api_request
|
||||
render json: { error: MAINTENANCE_MESSAGE }.to_json, status: :service_unavailable
|
||||
else
|
||||
%i(user gestionnaire administrateur).each { |role| sign_out(role) }
|
||||
[:user, :gestionnaire, :administrateur].each { |role| sign_out(role) }
|
||||
flash[:alert] = MAINTENANCE_MESSAGE
|
||||
redirect_to root_path
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class Gestionnaires::PasswordsController < Devise::PasswordsController
|
||||
after_action :try_to_authenticate_user, only: %i(update)
|
||||
after_action :try_to_authenticate_administrateur, only: %i(update)
|
||||
after_action :try_to_authenticate_user, only: [:update]
|
||||
after_action :try_to_authenticate_administrateur, only: [:update]
|
||||
|
||||
# GET /resource/password/new
|
||||
# def new
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class Users::PasswordsController < Devise::PasswordsController
|
||||
after_action :try_to_authenticate_gestionnaire, only: %i(update)
|
||||
after_action :try_to_authenticate_administrateur, only: %i(update)
|
||||
after_action :try_to_authenticate_gestionnaire, only: [:update]
|
||||
after_action :try_to_authenticate_administrateur, only: [:update]
|
||||
|
||||
# GET /resource/password/new
|
||||
# def new
|
||||
|
|
|
@ -61,7 +61,7 @@ class AttestationTemplate < ApplicationRecord
|
|||
end
|
||||
|
||||
def logo_signature_file_size
|
||||
%i[logo signature]
|
||||
[:logo, :signature]
|
||||
.select { |file_name| send(file_name).present? }
|
||||
.each { |file_name| file_size_check(file_name) }
|
||||
end
|
||||
|
|
|
@ -224,7 +224,7 @@ class Procedure < ApplicationRecord
|
|||
procedure.logo_secure_token = nil
|
||||
procedure.remote_logo_url = self.logo_url
|
||||
|
||||
%i(notice deliberation).each { |attachment| clone_attachment(procedure, attachment) }
|
||||
[:notice, :deliberation].each { |attachment| clone_attachment(procedure, attachment) }
|
||||
|
||||
procedure.administrateur = admin
|
||||
procedure.initiated_mail = initiated_mail&.dup
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace :'2017_12_04_translate_dossier_state_to_french' do
|
|||
Dossier.unscoped.where(state: 'without_continuation').update_all(state: 'sans_suite')
|
||||
end
|
||||
|
||||
task all: %i(brouillon en_construction en_instruction accepte refuse sans_suite) do
|
||||
task all: [:brouillon, :en_construction, :en_instruction, :accepte, :refuse, :sans_suite] do
|
||||
end
|
||||
|
||||
task revert: :environment do
|
||||
|
|
Loading…
Reference in a new issue