aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authoreparreno <emili@eparreno.com>2010-11-15 22:16:17 +0100
committereparreno <emili@eparreno.com>2010-11-15 22:16:17 +0100
commitca4b4c0baa240baea0eaf372283dbd33ec671b6a (patch)
tree0ca0ee53b1d03d76f82c3ba481da53c1e5499084 /activerecord/CHANGELOG
parent04775a41cbbddceeffa9cf8590566b9990fd4070 (diff)
parent91a6db90cf8b2c07af4cf64a9c587268106aadd5 (diff)
downloadrails-ca4b4c0baa240baea0eaf372283dbd33ec671b6a.tar.gz
rails-ca4b4c0baa240baea0eaf372283dbd33ec671b6a.tar.bz2
rails-ca4b4c0baa240baea0eaf372283dbd33ec671b6a.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activerecord/CHANGELOG')
-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