Enable the Layout/MultilineMethodCallIndentation cop
This commit is contained in:
parent
b77837bfd1
commit
73dd58b6cd
21 changed files with 85 additions and 85 deletions
|
@ -142,7 +142,8 @@ Layout/MultilineMethodCallBraceLayout:
|
|||
EnforcedStyle: symmetrical
|
||||
|
||||
Layout/MultilineMethodCallIndentation:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
EnforcedStyle: indented
|
||||
|
||||
Layout/MultilineMethodDefinitionBraceLayout:
|
||||
Enabled: false
|
||||
|
|
|
@ -54,8 +54,7 @@ class Gestionnaire < ActiveRecord::Base
|
|||
procedure_ids = followed_dossiers.pluck(:procedure_id)
|
||||
|
||||
if procedure_ids.include?(procedure.id)
|
||||
return followed_dossiers.where(procedure_id: procedure.id)
|
||||
.inject(0) do |acc, dossier|
|
||||
return followed_dossiers.where(procedure_id: procedure.id).inject(0) do |acc, dossier|
|
||||
acc += dossier.notifications.where(already_read: false).count
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue