diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-15 14:17:33 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-15 14:18:16 -0700 |
commit | 3480551e67d2bd97b50a9f95b8f0a49132c38bec (patch) | |
tree | c764897016deb0c58e271cf972031d4c18db2394 /activerecord/CHANGELOG | |
parent | 55736ef1252a7373c3c21b9cb0bebf497fddaff9 (diff) | |
download | rails-3480551e67d2bd97b50a9f95b8f0a49132c38bec.tar.gz rails-3480551e67d2bd97b50a9f95b8f0a49132c38bec.tar.bz2 rails-3480551e67d2bd97b50a9f95b8f0a49132c38bec.zip |
removing nonsensical tests, limit now actually adds a limit
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 62f1470287..8f283e1117 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,7 +1,19 @@ *Rails 3.1.0 (unreleased)* -* No changes +* The following code: + Model.limit(10).scoping { Model.count } + + now generates the following SQL: + + SELECT COUNT(*) FROM models LIMIT 10 + + This may not return what you want. Instead, you may with to do something + like this: + + Model.limit(10).scoping { Model.all.size } + + [Aaron Patterson] *Rails 3.0.0 (August 29, 2010)* |