Permalink
Browse files

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

  • Loading branch information...
1 parent 6643929 commit 61e70bf6231e264a14e4f24ed2a97a8c7315b70e @fxn fxn committed Sep 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 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"

0 comments on commit 61e70bf

Please sign in to comment.