aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/xml_mini/rexml.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-09-13 05:56:30 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-09-13 05:57:44 -0700
commitc2018b4b7b50b1c4aa89ff61cf0099229c3669a1 (patch)
tree52be4d9b934a9a33fe76ca0d49a3dd5d67da5c04 /activesupport/lib/active_support/xml_mini/rexml.rb
parent7e6652edbf87d26489d2b68cfa29abeb2ab588c7 (diff)
downloadrails-c2018b4b7b50b1c4aa89ff61cf0099229c3669a1.tar.gz
rails-c2018b4b7b50b1c4aa89ff61cf0099229c3669a1.tar.bz2
rails-c2018b4b7b50b1c4aa89ff61cf0099229c3669a1.zip
Shush, rexml
Diffstat (limited to 'activesupport/lib/active_support/xml_mini/rexml.rb')
-rw-r--r--activesupport/lib/active_support/xml_mini/rexml.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/xml_mini/rexml.rb b/activesupport/lib/active_support/xml_mini/rexml.rb
index aaf4bb6bfd..bfed11fefb 100644
--- a/activesupport/lib/active_support/xml_mini/rexml.rb
+++ b/activesupport/lib/active_support/xml_mini/rexml.rb
@@ -24,7 +24,7 @@ module ActiveSupport
{}
else
data.ungetc(char)
- require 'rexml/document' unless defined?(REXML::Document)
+ silence_warnings { require 'rexml/document' } unless defined?(REXML::Document)
doc = REXML::Document.new(data)
merge_element!({}, doc.root)
end