aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-11-09 20:56:41 +0100
committerXavier Noria <fxn@hashref.com>2010-11-09 20:56:41 +0100
commit41366cdec6003011e19971c1bcfb82949ff93a6e (patch)
treeeb3e9188163341045acd2243b3bc09923e2147af /activerecord
parent88a559d4148789474c6dbd216725c69fa18200a9 (diff)
downloadrails-41366cdec6003011e19971c1bcfb82949ff93a6e.tar.gz
rails-41366cdec6003011e19971c1bcfb82949ff93a6e.tar.bz2
rails-41366cdec6003011e19971c1bcfb82949ff93a6e.zip
syncs CHANGELOGs for 3.0.2 in 3-0-stable with the ones in master
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG29
1 files changed, 29 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index d3530e0da9..11eb47917d 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -18,6 +18,35 @@
[Aaron Patterson]
+*Rails 3.0.2 (unreleased)*
+
+* reorder is deprecated in favor of except(:order).order(...) [Santiago Pastorino]
+
+* except is now AR public API
+
+ Model.order('name').except(:order).order('salary')
+
+ generates:
+
+ SELECT * FROM models ORDER BY salary
+
+ [Santiago Pastorino]
+
+* 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.1 (October 15, 2010)*
* Introduce a fix for CVE-2010-3993