Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

revises RDoc of Hash#to_param to be more precise about ordering

  • Loading branch information...
commit 61e70bf6231e264a14e4f24ed2a97a8c7315b70e 1 parent 6643929
@fxn fxn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/object/to_param.rb
View
4 activesupport/lib/active_support/core_ext/object/to_param.rb
@@ -35,8 +35,8 @@ def to_param
class Hash
# Converts a hash into a string suitable for use as a URL query string. An optional <tt>namespace</tt> can be
- # passed to enclose the param names (see example below). The keys in the query string are sorted lexicographically
- # in ascending order.
+ # passed to enclose the param names (see example below). The string pairs "key=value" that conform the query
+ # string are sorted lexicographically in ascending order.
#
# ==== Examples
# { :name => 'David', :nationality => 'Danish' }.to_param # => "name=David&nationality=Danish"
Please sign in to comment.
Something went wrong with that request. Please try again.