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
|
EnforcedStyle: symmetrical
|
||||||
|
|
||||||
Layout/MultilineMethodCallIndentation:
|
Layout/MultilineMethodCallIndentation:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
EnforcedStyle: indented
|
||||||
|
|
||||||
Layout/MultilineMethodDefinitionBraceLayout:
|
Layout/MultilineMethodDefinitionBraceLayout:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
|
@ -54,8 +54,7 @@ class Gestionnaire < ActiveRecord::Base
|
||||||
procedure_ids = followed_dossiers.pluck(:procedure_id)
|
procedure_ids = followed_dossiers.pluck(:procedure_id)
|
||||||
|
|
||||||
if procedure_ids.include?(procedure.id)
|
if procedure_ids.include?(procedure.id)
|
||||||
return followed_dossiers.where(procedure_id: procedure.id)
|
return followed_dossiers.where(procedure_id: procedure.id).inject(0) do |acc, dossier|
|
||||||
.inject(0) do |acc, dossier|
|
|
||||||
acc += dossier.notifications.where(already_read: false).count
|
acc += dossier.notifications.where(already_read: false).count
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue