diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-01-09 13:12:39 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-01-09 13:12:39 -0600 |
commit | ac4bf1180aa0f82616038522bddaf3ff3d5020c8 (patch) | |
tree | 4f30a78b0bcb772ba7e0072b3527cd08f08fe15e /actionpack/lib | |
parent | 282c1d6159a06dce4dd52c1849daad9e73480808 (diff) | |
download | rails-ac4bf1180aa0f82616038522bddaf3ff3d5020c8.tar.gz rails-ac4bf1180aa0f82616038522bddaf3ff3d5020c8.tar.bz2 rails-ac4bf1180aa0f82616038522bddaf3ff3d5020c8.zip |
Ensure we override Rack::Request's POST method too
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 8371f1bf5c..b4ab1ccda1 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -387,6 +387,7 @@ EOM def parameters @parameters ||= request_parameters.merge(query_parameters).update(path_parameters).with_indifferent_access end + alias_method :params, :parameters def path_parameters=(parameters) #:nodoc: @env["rack.routing_args"] = parameters @@ -418,9 +419,11 @@ EOM end alias_method :query_parameters, :GET - def request_parameters + # Override Rack's POST method to support nested query strings + def POST @parser.request_parameters end + alias_method :request_parameters, :POST def body_stream #:nodoc: @env['rack.input'] |