aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorMarcelo Casiraghi <marcelocasiraghi@gmail.com>2013-05-23 00:17:15 -0300
committerRobin Dupret <robin.dupret@gmail.com>2014-03-04 18:20:00 +0100
commitacbd7ab22e5d9179487bd98110234c54535036c4 (patch)
treea84e1a5205de1e33dc635dffb0dc8bd48e8542e0 /activerecord/CHANGELOG.md
parent705915ab5cf24430892107764b0050c07e1df583 (diff)
downloadrails-acbd7ab22e5d9179487bd98110234c54535036c4.tar.gz
rails-acbd7ab22e5d9179487bd98110234c54535036c4.tar.bz2
rails-acbd7ab22e5d9179487bd98110234c54535036c4.zip
Allow string hash values on AR order method
This behavior has almost no performance impact: String not allowed 66.910000 0.030000 66.940000 ( 67.024976) String allowed 69.360000 0.030000 69.390000 ( 69.503096) Benchmarked with http://git.io/Y0YuRw.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 3e6758c222..4a522299ed 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,13 @@
+* Allow strings to specify the `#order` value.
+
+ Example:
+
+ Model.order(id: 'asc').to_sql == Model.order(id: :asc).to_sql
+
+ Fixes #10732.
+
+ *Marcelo Casiraghi*
+
* Dynamically register PostgreSQL enum OIDs. This prevents "unknown OID"
warnings on enum columns.