Enable the Layout/SpaceAroundEqualsInParameterDefault cop
This commit is contained in:
parent
245c04d2bb
commit
278a662350
5 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@ class UsersController < ApplicationController
|
|||
redirect_to root_path
|
||||
end
|
||||
|
||||
def current_user_dossier dossier_id=nil
|
||||
def current_user_dossier dossier_id = nil
|
||||
dossier_id ||= params[:dossier_id] || params[:id]
|
||||
|
||||
dossier = Dossier.find(dossier_id)
|
||||
|
|
|
@ -24,7 +24,7 @@ class DossierDecorator < Draper::Decorator
|
|||
end
|
||||
end
|
||||
|
||||
def self.case_state_fr state=self.state
|
||||
def self.case_state_fr state = self.state
|
||||
h.t("activerecord.attributes.dossier.state.#{state}")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class NotificationService
|
||||
def initialize type_notif, dossier_id, attribut_change=''
|
||||
def initialize type_notif, dossier_id, attribut_change = ''
|
||||
@type_notif = type_notif
|
||||
@dossier_id = dossier_id
|
||||
|
||||
|
@ -22,7 +22,7 @@ class NotificationService
|
|||
end
|
||||
end
|
||||
|
||||
def text_for_notif attribut=''
|
||||
def text_for_notif attribut = ''
|
||||
case @type_notif
|
||||
when 'commentaire'
|
||||
"#{notification.liste.size + 1} nouveau(x) commentaire(s) déposé(s)."
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class TypesDeChampService
|
||||
def self.create_update_procedure_params(params, private=false)
|
||||
def self.create_update_procedure_params(params, private = false)
|
||||
attributes = (private ? 'types_de_champ_private_attributes' : 'types_de_champ_attributes')
|
||||
|
||||
params_with_ordered_champs = order_champs(params, attributes)
|
||||
|
|
|
@ -95,7 +95,7 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
|
|||
has_many :assign_to, dependent: :destroy
|
||||
has_many :procedures, through: :assign_to
|
||||
|
||||
def build_default_preferences_list_dossier procedure_id=nil
|
||||
def build_default_preferences_list_dossier procedure_id = nil
|
||||
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
||||
table.second.each do |column|
|
||||
if valid_couple_table_attr? table.first, column.first
|
||||
|
|
Loading…
Reference in a new issue