diff options
author | Tobias Lütke <tobias.luetke@gmail.com> | 2007-04-09 15:33:38 +0000 |
---|---|---|
committer | Tobias Lütke <tobias.luetke@gmail.com> | 2007-04-09 15:33:38 +0000 |
commit | 01c35c817528cc54c8c28f56786e92ff292e3c2a (patch) | |
tree | 27368a62da06014c02632a836b814e758cdd6d05 /actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | |
parent | 4b08caf3300e7ba96e637075cfd4162ff70f6558 (diff) | |
download | rails-01c35c817528cc54c8c28f56786e92ff292e3c2a.tar.gz rails-01c35c817528cc54c8c28f56786e92ff292e3c2a.tar.bz2 rails-01c35c817528cc54c8c28f56786e92ff292e3c2a.zip |
Removed ill faded xml_node class from codebase. Use XmlSimple instead
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6511 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 | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index b06966729a..abf70cc76a 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -1,5 +1,4 @@ require 'cgi' -require 'action_controller/vendor/xml_node' require 'strscan' # Static methods for parsing the query and request parameters that can be used in @@ -49,13 +48,10 @@ class CGIMethods #:nodoc: case strategy = ActionController::Base.param_parsers[mime_type] when Proc strategy.call(raw_post_data) - when :xml_simple + when :xml_simple, :xml_node raw_post_data.blank? ? {} : Hash.from_xml(raw_post_data) when :yaml YAML.load(raw_post_data) - when :xml_node - node = XmlNode.from_xml(raw_post_data) - { node.node_name => node } end rescue Exception => e # YAML, XML or Ruby code block errors { "exception" => "#{e.message} (#{e.class})", "backtrace" => e.backtrace, |