From c2018b4b7b50b1c4aa89ff61cf0099229c3669a1 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 13 Sep 2009 05:56:30 -0700 Subject: Shush, rexml --- activesupport/lib/active_support/xml_mini/rexml.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/xml_mini/rexml.rb') 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 -- cgit v1.2.3 From 3b325d624ccb5b390356d61a3ba72f09709066a4 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sun, 13 Sep 2009 10:53:12 -0500 Subject: require reporting before attempting to "shush" --- activesupport/lib/active_support/xml_mini/rexml.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/lib/active_support/xml_mini/rexml.rb') diff --git a/activesupport/lib/active_support/xml_mini/rexml.rb b/activesupport/lib/active_support/xml_mini/rexml.rb index bfed11fefb..3db48ce5a3 100644 --- a/activesupport/lib/active_support/xml_mini/rexml.rb +++ b/activesupport/lib/active_support/xml_mini/rexml.rb @@ -1,3 +1,4 @@ +require 'active_support/core_ext/kernel/reporting' require 'active_support/core_ext/object/blank' # = XmlMini ReXML implementation -- cgit v1.2.3