aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-22 05:08:34 +0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-22 06:23:13 +0800
commit5c858220085dc4ddc1bec496747059dfbe32f1da (patch)
tree360e2ef5a119da0b6fb506c250b6914c97c19b76 /activesupport/lib
parentb0c7dee4f2744286069c5ff4e65c3d081a4cb24a (diff)
downloadrails-5c858220085dc4ddc1bec496747059dfbe32f1da.tar.gz
rails-5c858220085dc4ddc1bec496747059dfbe32f1da.tar.bz2
rails-5c858220085dc4ddc1bec496747059dfbe32f1da.zip
Hash#to_param is doesn't use sort anymore, some tests added for Hash#to_param
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/object/to_param.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/to_param.rb b/activesupport/lib/active_support/core_ext/object/to_param.rb
index 06f077e920..f2e7c2351e 100644
--- a/activesupport/lib/active_support/core_ext/object/to_param.rb
+++ b/activesupport/lib/active_support/core_ext/object/to_param.rb
@@ -44,6 +44,6 @@ class Hash
def to_param(namespace = nil)
collect do |key, value|
value.to_query(namespace ? "#{namespace}[#{key}]" : key)
- end.sort * '&'
+ end * '&'
end
end