Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13877 from marcandre/find_in_batches

Mention find_each in find_in_batches doc [ci skip]
  • Loading branch information...
commit 2c964ac59194c340660986423b4aa93de447c37b 2 parents 9653a65 + a2cf795
Rafael Mendonça França rafaelfranca authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  activerecord/lib/active_record/relation/batches.rb
2  activerecord/lib/active_record/relation/batches.rb
View
@@ -64,6 +64,8 @@ def find_each(options = {})
# group.each { |person| person.party_all_night! }
# end
#
+ # To be yielded each record one by one, use #find_each instead.
+ #
# ==== Options
# * <tt>:batch_size</tt> - Specifies the size of the batch. Default to 1000.
# * <tt>:start</tt> - Specifies the starting point for the batch processing.
Please sign in to comment.
Something went wrong with that request. Please try again.