Permalink
Browse files

Proper options for XmlSimple

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 0fbe683 commit 6fd737b76b7024fbc7d27f99139c9a0d052b1fc3 @dhh dhh committed Mar 7, 2006
@@ -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.

0 comments on commit 6fd737b

Please sign in to comment.