diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2014-01-29 14:30:36 -0500 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2014-01-29 14:30:36 -0500 |
commit | a2cf795784bfc602dadf5db85186f770396aebd8 (patch) | |
tree | c51a0d1378bbb099096272d1491d9cb7c8f2dbde /activerecord/lib/active_record | |
parent | 9653a65b551ea69daf5857e0b22ed8f67f4f23db (diff) | |
download | rails-a2cf795784bfc602dadf5db85186f770396aebd8.tar.gz rails-a2cf795784bfc602dadf5db85186f770396aebd8.tar.bz2 rails-a2cf795784bfc602dadf5db85186f770396aebd8.zip |
Mention find_each in find_in_batches doc [ci skip]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/relation/batches.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 # * <tt>:batch_size</tt> - Specifies the size of the batch. Default to 1000. # * <tt>:start</tt> - Specifies the starting point for the batch processing. |