Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A small rdoc change made on lines 39 and 41 on activesupport/lib/acti…

…ve_support/core_ext/object/to_param.rb. It looks like the method name might have been changed, and the comments were never changed to coincide with the new method name.
  • Loading branch information...
commit 9e8de7d9bce19e3fdfe7f125eb6b284048b42bee 1 parent 22a32f4
@jacortinas jacortinas authored mikel committed
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 100644 → 100755
@@ -38,9 +38,9 @@ class Hash
# passed to enclose the param names (see example below).
#
# ==== Examples
- # { :name => 'David', :nationality => 'Danish' }.to_query # => "name=David&nationality=Danish"
+ # { :name => 'David', :nationality => 'Danish' }.to_param # => "name=David&nationality=Danish"
#
- # { :name => 'David', :nationality => 'Danish' }.to_query('user') # => "user[name]=David&user[nationality]=Danish"
+ # { :name => 'David', :nationality => 'Danish' }.to_param('user') # => "user[name]=David&user[nationality]=Danish"
def to_param(namespace = nil)
collect do |key, value|
value.to_query(namespace ? "#{namespace}[#{key}]" : key)
Please sign in to comment.
Something went wrong with that request. Please try again.