diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-01-17 20:29:50 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-01-17 20:29:50 -0600 |
commit | ff0a2678c4bce9da348e1263915558795e3a3640 (patch) | |
tree | 3c5b6ab01afaa3d01198d8755e1dc38fa18f5af4 /actionpack/lib/action_controller/base.rb | |
parent | aab760c3df4c02377a59a418fc077cdbc07e9fdc (diff) | |
download | rails-ff0a2678c4bce9da348e1263915558795e3a3640.tar.gz rails-ff0a2678c4bce9da348e1263915558795e3a3640.tar.bz2 rails-ff0a2678c4bce9da348e1263915558795e3a3640.zip |
Build query string and POST params parser on top of Rack::Request. Also switch our multipart parser to use Racks. Moved XML, JSON, and YAML parsers into ActionController::ParamsParser middleware [#1661 state:resolved]
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index e22114195c..7a380bd1fb 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -301,10 +301,7 @@ module ActionController #:nodoc: # A YAML parser is also available and can be turned on with: # # ActionController::Base.param_parsers[Mime::YAML] = :yaml - @@param_parsers = { Mime::MULTIPART_FORM => :multipart_form, - Mime::URL_ENCODED_FORM => :url_encoded_form, - Mime::XML => :xml_simple, - Mime::JSON => :json } + @@param_parsers = {} cattr_accessor :param_parsers # Controls the default charset for all renders. |