diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-03-09 17:27:39 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-10 11:56:19 -0700 |
commit | 694998ee4fb8d257ba78424cab630846327a0889 (patch) | |
tree | 42639216568af741a4d484c486336131c1c7d6d5 /activesupport/lib/active_support/xml_mini.rb | |
parent | d4091d3bc79731f55491cfb51c604a66502c944f (diff) | |
download | rails-694998ee4fb8d257ba78424cab630846327a0889.tar.gz rails-694998ee4fb8d257ba78424cab630846327a0889.tar.bz2 rails-694998ee4fb8d257ba78424cab630846327a0889.zip |
Nokogiri backend for XmlMini
[#2190 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activesupport/lib/active_support/xml_mini.rb')
-rw-r--r-- | activesupport/lib/active_support/xml_mini.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb index 99158e4ff7..0513c0d4d0 100644 --- a/activesupport/lib/active_support/xml_mini.rb +++ b/activesupport/lib/active_support/xml_mini.rb @@ -8,6 +8,10 @@ module ActiveSupport extend self delegate :parse, :to => :@backend + class << self + attr_reader :backend + end + def backend=(name) require "active_support/xml_mini/#{name.to_s.downcase}.rb" @backend = ActiveSupport.const_get("XmlMini_#{name}") |