aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/xml_mini.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-03-09 13:42:42 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-03-09 13:42:42 -0700
commit4458edc882b229ea44602da20a6440a6f233f1c8 (patch)
treea9aa665904e8fd96d748b105f5d6f89b8584fb33 /activesupport/lib/active_support/xml_mini.rb
parent87d82ef76e88d7ce97cfc09151b677b552f2840a (diff)
downloadrails-4458edc882b229ea44602da20a6440a6f233f1c8.tar.gz
rails-4458edc882b229ea44602da20a6440a6f233f1c8.tar.bz2
rails-4458edc882b229ea44602da20a6440a6f233f1c8.zip
Use the REXML parser by default. XmlMini.backend = 'LibXML' to use libxml-ruby.
Diffstat (limited to 'activesupport/lib/active_support/xml_mini.rb')
-rw-r--r--activesupport/lib/active_support/xml_mini.rb11
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