Permalink
Browse files

Use the REXML parser by default. XmlMini.backend = 'LibXML' to use li…

…bxml-ruby.
  • Loading branch information...
1 parent 87d82ef commit 4458edc882b229ea44602da20a6440a6f233f1c8 @jeremy jeremy committed Mar 9, 2009
Showing with 5 additions and 6 deletions.
  1. +5 −6 activesupport/lib/active_support/xml_mini.rb
@@ -1,5 +1,9 @@
module ActiveSupport
# = XmlMini
+ #
+ # To use the much faster libxml parser:
+ # gem 'libxml-ruby', '=0.9.7'
+ # XmlMini.backend = 'LibXML'
module XmlMini
extend self
delegate :parse, :to => :@backend
@@ -10,10 +14,5 @@ def backend=(name)
end
end
- begin
- gem 'libxml-ruby', '=0.9.4', '=0.9.7'
- XmlMini.backend = 'LibXML'
- rescue Gem::LoadError
- XmlMini.backend = 'REXML'
- end
+ XmlMini.backend = 'REXML'
end

0 comments on commit 4458edc

Please sign in to comment.