mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:01 -05:00
no need to check for this constant
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user