diff options
| author | jacortinas <jacortinas@gmail.com> | 2010-04-30 09:05:32 -0500 | 
|---|---|---|
| committer | Ryan Bigg <radarlistener@gmail.com> | 2010-05-25 19:09:11 +1000 | 
| commit | 6602fb62a0e66c1fc6203b3495624b6ee82339f9 (patch) | |
| tree | 52ef0655a9c4b5c9af1958e9c0e64787c0bb11a3 | |
| parent | 2a833d7bd8c7d76d833fc248a113fb2f1cfe6d2b (diff) | |
| download | rails-6602fb62a0e66c1fc6203b3495624b6ee82339f9.tar.gz rails-6602fb62a0e66c1fc6203b3495624b6ee82339f9.tar.bz2 rails-6602fb62a0e66c1fc6203b3495624b6ee82339f9.zip | |
A small rdoc change made on lines 39 and 41 on activesupport/lib/active_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.
| -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) | 
