diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-07 04:42:13 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-07 04:42:13 +0000 |
commit | dc4b5cff39a532107354f55f292617ed7250cf6d (patch) | |
tree | f97aa0538ebc8aff78bfe931474a805a1f01e9d4 /actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | |
parent | 1c0163e50c789a01d9e96aecf2014e28aa9fef51 (diff) | |
download | rails-dc4b5cff39a532107354f55f292617ed7250cf6d.tar.gz rails-dc4b5cff39a532107354f55f292617ed7250cf6d.tar.bz2 rails-dc4b5cff39a532107354f55f292617ed7250cf6d.zip |
XmlSimple _should_ be the default since XmlNode is not compatible with regular parameters -- also known as Why Did My Etech Demo Not Work? [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext/cgi_methods.rb')
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index feab806077..3e65e5cb3a 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -60,15 +60,15 @@ class CGIMethods #:nodoc: def self.parse_formatted_request_parameters(format, raw_post_data) params = case strategy = ActionController::Base.param_parsers[format] - when Proc - strategy.call(raw_post_data) - when :xml_node - node = XmlNode.from_xml(raw_post_data) - { node.node_name => node } - when :xml_simple - XmlSimple.xml_in(raw_post_data, 'ForceArray' => false) - when :yaml - YAML.load(raw_post_data) + when Proc + strategy.call(raw_post_data) + when :xml_simple + XmlSimple.xml_in(raw_post_data, 'ForceArray' => false, :keeproot => true) + when :yaml + YAML.load(raw_post_data) + when :xml_node + node = XmlNode.from_xml(raw_post_data) + { node.node_name => node } end params || {} |