aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-12-04 08:37:06 +0100
committerYves Senn <yves.senn@gmail.com>2014-12-04 08:37:06 +0100
commitbc7623a500c93421152cbf3a45157392a6204c43 (patch)
tree0ed2e557b8625ae9371953fd3eee9e1c87437598
parenta83ad97f473a684417dc22fd7854ee5526e1b8ca (diff)
parentdb64f5d7ebef9834dcfe8476c3e8941cd9ce598c (diff)
downloadrails-bc7623a500c93421152cbf3a45157392a6204c43.tar.gz
rails-bc7623a500c93421152cbf3a45157392a6204c43.tar.bz2
rails-bc7623a500c93421152cbf3a45157392a6204c43.zip
Merge pull request #17901 from isaacseymour/fix-find-each-docs
Correct docs for ActiveRecord batching methods [ci skip]
-rw-r--r--activerecord/lib/active_record/relation/batches.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/batches.rb b/activerecord/lib/active_record/relation/batches.rb
index b069cdce7c..20d24b409b 100644
--- a/activerecord/lib/active_record/relation/batches.rb
+++ b/activerecord/lib/active_record/relation/batches.rb
@@ -40,8 +40,8 @@ module ActiveRecord
#
# NOTE: It's not possible to set the order. That is automatically set to
# ascending on the primary key ("id ASC") to make the batch ordering
- # work. This also means that this method only works with integer-based
- # primary keys.
+ # work. This also means that this method only works when the primary key is
+ # orderable (e.g. an integer or string).
#
# NOTE: You can't set the limit either, that's used to control
# the batch sizes.
@@ -90,8 +90,8 @@ module ActiveRecord
#
# NOTE: It's not possible to set the order. That is automatically set to
# ascending on the primary key ("id ASC") to make the batch ordering
- # work. This also means that this method only works with integer-based
- # primary keys.
+ # work. This also means that this method only works when the primary key is
+ # orderable (e.g. an integer or string).
#
# NOTE: You can't set the limit either, that's used to control
# the batch sizes.