diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-09 12:46:06 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-09 13:00:57 -0700 |
commit | 87d82ef76e88d7ce97cfc09151b677b552f2840a (patch) | |
tree | 5ce0f6147cb0da934e658b181546a72b473021b2 /activesupport/lib/active_support/xml_mini/rexml.rb | |
parent | 146511e0181a8c6703dcff7b5236d81b64841dd5 (diff) | |
download | rails-87d82ef76e88d7ce97cfc09151b677b552f2840a.tar.gz rails-87d82ef76e88d7ce97cfc09151b677b552f2840a.tar.bz2 rails-87d82ef76e88d7ce97cfc09151b677b552f2840a.zip |
Require libxml-ruby 0.9.4 or 0.9.7 pending a segfault bugfix for 1.0.
Delegate parsing to a switchable backend.
Diffstat (limited to 'activesupport/lib/active_support/xml_mini/rexml.rb')
-rw-r--r-- | activesupport/lib/active_support/xml_mini/rexml.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/xml_mini/rexml.rb b/activesupport/lib/active_support/xml_mini/rexml.rb index 655eff168c..a8fdeca967 100644 --- a/activesupport/lib/active_support/xml_mini/rexml.rb +++ b/activesupport/lib/active_support/xml_mini/rexml.rb @@ -1,8 +1,10 @@ # = XmlMini ReXML implementation module ActiveSupport - module XmlMini + module XmlMini_REXML #:nodoc: extend self + CONTENT_KEY = '__content__'.freeze + # Parse an XML Document string into a simple hash # # Same as XmlSimple::xml_in but doesn't shoot itself in the foot, @@ -103,4 +105,4 @@ module ActiveSupport element.texts.join.blank? end end -end
\ No newline at end of file +end |