Enable Style/YodaCondition
This commit is contained in:
parent
1f4ef0074f
commit
d1439f8a52
2 changed files with 2 additions and 2 deletions
|
@ -1265,7 +1265,7 @@ Style/WordArray:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Style/YodaCondition:
|
Style/YodaCondition:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
Style/ZeroLengthPredicate:
|
Style/ZeroLengthPredicate:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
|
@ -211,7 +211,7 @@ class StatsController < ApplicationController
|
||||||
{
|
{
|
||||||
'Une démarche' => count_per_administrateur.select { |count| count == 1 }.count,
|
'Une démarche' => count_per_administrateur.select { |count| count == 1 }.count,
|
||||||
'Entre deux et cinq démarches' => count_per_administrateur.select { |count| count.in?(2..5) }.count,
|
'Entre deux et cinq démarches' => count_per_administrateur.select { |count| count.in?(2..5) }.count,
|
||||||
'Plus de cinq démarches' => count_per_administrateur.select { |count| 5 < count }.count
|
'Plus de cinq démarches' => count_per_administrateur.select { |count| count > 5 }.count
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue