Add Style/CollectionMethods to rubocop
This commit is contained in:
parent
3f970eee74
commit
3b8d3b7967
37 changed files with 67 additions and 60 deletions
|
@ -74,7 +74,7 @@ class Instructeur < ApplicationRecord
|
|||
active_procedure_overviews = procedures
|
||||
.publiees
|
||||
.map { |procedure| procedure.procedure_overview(start_date) }
|
||||
.select(&:had_some_activities?)
|
||||
.filter(&:had_some_activities?)
|
||||
|
||||
if active_procedure_overviews.count == 0
|
||||
nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue