Enable rails/findEach Rubocop cop

This cop enforce the use of `find_each` instead of `each`.

Closes #1535
This commit is contained in:
Dimitris 2017-06-15 23:04:28 +03:00
parent 4d895ae3bc
commit d160c22a0b
3 changed files with 5 additions and 9 deletions

View file

@ -196,6 +196,10 @@ Lint/DuplicatedKey:
Rails:
Enabled: true
# Use `find_each` instead of `each`.
Rails/FindEach:
Enabled: true
# Avoid use of old-style attribute validation
Rails/Validation:
Enabled: true