You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Korri
changed the title
Rails/FindEach should check that class implements ActiveRecord::Batches
Rails/FindEach reports issue on any class ActiveRecord::Batches
Aug 12, 2019
Korri
changed the title
Rails/FindEach reports issue on any class ActiveRecord::Batches
Rails/FindEach reports issue on any class
Aug 12, 2019
Right now every instance of
all.each
on any class and report is as a violation byRails/FindEach
.This is particularly with classes that only include part of
ActiveRecord
like https://github.com/byroot/frozen_record for example.Expected behavior
The following class should pass validation, as this class does not includes
ActiveRecord::Batches
and does not supportfind_each
.Actual behavior
Steps to reproduce the problem
Using the example above should be enough.
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:The text was updated successfully, but these errors were encountered: