diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-11-26 15:01:59 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-11-26 15:01:59 +0100 |
commit | 17940a82e8cb0ed278e1552b943dd033763978a1 (patch) | |
tree | e021b53765d336b35056cf56cbbda9c88eafcf30 | |
parent | 05a938c5f7804fd59c76c45df096e6ebff871a18 (diff) | |
download | rails-17940a82e8cb0ed278e1552b943dd033763978a1.tar.gz rails-17940a82e8cb0ed278e1552b943dd033763978a1.tar.bz2 rails-17940a82e8cb0ed278e1552b943dd033763978a1.zip |
Don't re-require 'rexml/document'
-rw-r--r-- | activesupport/lib/active_support/xml_mini.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb index d0b660f7bd..bfc3d7b00b 100644 --- a/activesupport/lib/active_support/xml_mini.rb +++ b/activesupport/lib/active_support/xml_mini.rb @@ -17,7 +17,7 @@ module XmlMini # string:: # XML Document string to parse def parse(string) - require 'rexml/document' + require 'rexml/document' unless defined?(REXML::Document) doc = REXML::Document.new(string) merge_element!({}, doc.root) end |