Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…bxml-ruby.
  • Loading branch information...
commit 4458edc882b229ea44602da20a6440a6f233f1c8 1 parent 87d82ef
Jeremy Kemper jeremy authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 activesupport/lib/active_support/xml_mini.rb
11 activesupport/lib/active_support/xml_mini.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.