Permalink
Browse files

Merge pull request #13877 from marcandre/find_in_batches

Mention find_each in find_in_batches doc [ci skip]
  • Loading branch information...
2 parents 9653a65 + a2cf795 commit 2c964ac59194c340660986423b4aa93de447c37b @rafaelfranca rafaelfranca committed Jan 29, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/relation/batches.rb
@@ -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.

0 comments on commit 2c964ac

Please sign in to comment.