diff options
-rw-r--r-- | activesupport/lib/active_support/xml_mini.rb | 11 |
1 files 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 |