From 4458edc882b229ea44602da20a6440a6f233f1c8 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 9 Mar 2009 13:42:42 -0700 Subject: [PATCH] Use the REXML parser by default. XmlMini.backend = 'LibXML' to use libxml-ruby. --- activesupport/lib/active_support/xml_mini.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb index d2a882b685..99158e4ff7 100644 --- a/activesupport/lib/active_support/xml_mini.rb +++ b/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 @@ module ActiveSupport 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