From a2cf795784bfc602dadf5db85186f770396aebd8 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Wed, 29 Jan 2014 14:30:36 -0500 Subject: Mention find_each in find_in_batches doc [ci skip] --- activerecord/lib/active_record/relation/batches.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib/active_record/relation') diff --git a/activerecord/lib/active_record/relation/batches.rb b/activerecord/lib/active_record/relation/batches.rb index f02e2365f7..e98b4712f5 100644 --- a/activerecord/lib/active_record/relation/batches.rb +++ b/activerecord/lib/active_record/relation/batches.rb @@ -64,6 +64,8 @@ module ActiveRecord # group.each { |person| person.party_all_night! } # end # + # To be yielded each record one by one, use #find_each instead. + # # ==== Options # * :batch_size - Specifies the size of the batch. Default to 1000. # * :start - Specifies the starting point for the batch processing. -- cgit v1.2.3