Add Style/CollectionMethods to rubocop
This commit is contained in:
parent
3f970eee74
commit
3b8d3b7967
37 changed files with 67 additions and 60 deletions
|
@ -36,7 +36,7 @@ module CreateAvisConcern
|
|||
|
||||
if failed.any?
|
||||
flash.now.alert = failed
|
||||
.select { |avis| avis.errors.present? }
|
||||
.filter { |avis| avis.errors.present? }
|
||||
.map { |avis| "#{avis.email} : #{avis.errors.full_messages.join(', ')}" }
|
||||
|
||||
# When an error occurs, return the avis back to the controller
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue