aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-06 09:33:08 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-06 09:33:08 +0000
commit1e9e198cc5c053a9137de78d524412105ac20065 (patch)
tree11390187cf7f42a9156d4ddaa4c4997e88f71c7d /activerecord/lib/active_record/base.rb
parent821f2d58a76da208b1f6851e436a3f1f9a00dbaa (diff)
downloadrails-1e9e198cc5c053a9137de78d524412105ac20065.tar.gz
rails-1e9e198cc5c053a9137de78d524412105ac20065.tar.bz2
rails-1e9e198cc5c053a9137de78d524412105ac20065.zip
Note that find results may not be in the same order as the id arguments. Closes #7719.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 2127f64a1b..3a9783bac5 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -386,6 +386,10 @@ module ActiveRecord #:nodoc:
# Person.find([1]) # returns an array for objects the object with ID = 1
# Person.find(1, :conditions => "administrator = 1", :order => "created_on DESC")
#
+ # Note that returned records may not be in the same order as the ids you
+ # provide since database rows are unordered. Give an explicit :order
+ # to ensure the results are sorted.
+ #
# Examples for find first:
# Person.find(:first) # returns the first object fetched by SELECT * FROM people
# Person.find(:first, :conditions => [ "user_name = ?", user_name])