From dafc3c7a066f9dc3a2a157b1294ba414e2e2e7b4 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Tue, 7 Feb 2012 21:20:35 +0100 Subject: no need to check for this constant --- activerecord/lib/active_record/serializers/xml_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/serializers/xml_serializer.rb b/activerecord/lib/active_record/serializers/xml_serializer.rb index 55338a1ffd..e7f653ec84 100644 --- a/activerecord/lib/active_record/serializers/xml_serializer.rb +++ b/activerecord/lib/active_record/serializers/xml_serializer.rb @@ -163,7 +163,7 @@ module ActiveRecord #:nodoc: # # class IHaveMyOwnXML < ActiveRecord::Base # def to_xml(options = {}) - # require 'builder' unless defined? ::Builder + # require 'builder' # options[:indent] ||= 2 # xml = options[:builder] ||= ::Builder::XmlMarkup.new(:indent => options[:indent]) # xml.instruct! unless options[:skip_instruct] -- cgit v1.2.3