Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4822

Show
Ignore:
Timestamp:
08/26/06 02:58:55 (2 years ago)
Author:
david
Message:

Result is made indifferent on the way out

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4821 r4822  
    11*SVN* 
    22 
    3 * Changed the POST parameter processing to use the new QueryStringParser and make the result a indifferent hash [DHH] 
     3* Changed the POST parameter processing to use the new QueryStringParser [DHH] 
    44 
    55* Add UrlWriter to allow writing urls from Mailers and scripts. [Nicholas Seckar] 
  • trunk/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb

    r4821 r4822  
    157157      end 
    158158       
    159       return result.with_indifferent_access 
     159      return result 
    160160    end 
    161161     
  • trunk/actionpack/test/controller/cgi_test.rb

    r4821 r4822  
    3030    expected = {'x' => {'y' => {'z' => '10'}}} 
    3131    assert_equal(expected, CGIMethods.parse_query_parameters('x[y][z]=10')) 
    32     assert_equal("10", CGIMethods.parse_query_parameters('x[y][z]=10')[:x][:y][:z]) 
    3332  end 
    3433