aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-01-09 13:12:39 -0600
committerJoshua Peek <josh@joshpeek.com>2009-01-09 13:12:39 -0600
commitac4bf1180aa0f82616038522bddaf3ff3d5020c8 (patch)
tree4f30a78b0bcb772ba7e0072b3527cd08f08fe15e /actionpack/lib
parent282c1d6159a06dce4dd52c1849daad9e73480808 (diff)
downloadrails-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-xactionpack/lib/action_controller/request.rb5
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']