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
Just opened a PR which fixes this point regarding order and limit. I read on an Internet forum that find_each also ignores select(:field1, :field2, ...), so I included that too.
The point about the return value is (deliberately) not fixed.
Rails/FindEach cop suggests to change
to
which might cause unexpected semantic change:
each {...}
returns Array, whilefind_each {...}
returns nil in this case.find_each
does not respectlimit
andorder
conditions.The text was updated successfully, but these errors were encountered: