Proper options for XmlSimple

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-03-07 04:52:49 +00:00
parent 0fbe6837b1
commit 6fd737b76b
2 changed files with 1 additions and 2 deletions

@ -63,7 +63,7 @@ def self.parse_formatted_request_parameters(format, raw_post_data)
when Proc
strategy.call(raw_post_data)
when :xml_simple
XmlSimple.xml_in(raw_post_data, 'ForceArray' => false, :keeproot => true)
XmlSimple.xml_in(raw_post_data, 'ForceArray' => false, 'keeproot' => true)
when :yaml
YAML.load(raw_post_data)
when :xml_node

@ -155,7 +155,6 @@ def path
# This method returns nil unless the web server is apache.
def relative_url_root
@@relative_url_root ||= server_software == 'apache' ? @env["SCRIPT_NAME"].to_s.sub(/\/dispatch\.(fcgi|rb|cgi)$/, '') : ''
end
# Returns the port number of this request as an integer.