ifmeorg/ifme

View on GitHub
app/workers/delete_stale_data_worker.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
50%

Use find_each instead of each.
Open

      .each do |dr|

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