ifmeorg/ifme

View on GitHub
app/controllers/moments_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
90%

Use find_each instead of each.
Open

    Strategy.where(user: @viewers).each do |strategy|

This cop is used to identify usages of all.each and change them to use all.find_each instead.

Example:

# bad
User.all.each

# good
User.all.find_each

There are no issues that match your filters.

Category
Status