diff options
| -rwxr-xr-x[-rw-r--r--] | activesupport/lib/active_support/core_ext/object/to_param.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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 49e41e919a..06f077e920 100644..100755 --- a/activesupport/lib/active_support/core_ext/object/to_param.rb +++ b/activesupport/lib/active_support/core_ext/object/to_param.rb @@ -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) | 
