Skip to content

Instantly share code, notes, and snippets.

@hughdavenport
Created May 9, 2013 02:19
Show Gist options
  • Save hughdavenport/5545117 to your computer and use it in GitHub Desktop.
Save hughdavenport/5545117 to your computer and use it in GitHub Desktop.
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 0d5f350..f25c3d6 100644
--- a/activesupport/lib/active_support/core_ext/object/to_param.rb
+++ b/activesupport/lib/active_support/core_ext/object/to_param.rb
@@ -53,6 +53,6 @@ class Hash
def to_param(namespace = nil)
collect do |key, value|
value.to_query(namespace ? "#{namespace}[#{key}]" : key)
- end.sort * '&'
+ end * '&'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment