diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-11 13:26:28 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-11 13:26:28 +0000 |
commit | 8a7275e7f4addaf7e7f42e32abc23121be87631b (patch) | |
tree | 84f3774b3c9a486fa695d0b53dfbf452869aad96 /activesupport/lib/active_support | |
parent | 3edc98a1cc6c3a701ea1ca7d4525623c2d3b4259 (diff) | |
download | rails-8a7275e7f4addaf7e7f42e32abc23121be87631b.tar.gz rails-8a7275e7f4addaf7e7f42e32abc23121be87631b.tar.bz2 rails-8a7275e7f4addaf7e7f42e32abc23121be87631b.zip |
Array#to_query preserves its ordering. References #7756.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb index 1cdf7d5c54..f0ce27508f 100644 --- a/activesupport/lib/active_support/core_ext/hash/conversions.rb +++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb @@ -15,7 +15,7 @@ end class Array def to_query(key) #:nodoc: - collect { |value| value.to_query("#{key}[]") }.sort * '&' + collect { |value| value.to_query("#{key}[]") } * '&' end end |