File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
activesupport/lib/active_support/core_ext Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def to_formatted_s(format = :default)
181
181
# </messages>
182
182
#
183
183
def to_xml ( options = { } )
184
- require "active_support/builder" unless defined? ( Builder )
184
+ require "active_support/builder" unless defined? ( Builder :: XmlMarkup )
185
185
186
186
options = options . dup
187
187
options [ :indent ] ||= 2
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class Hash
73
73
# configure your own builder with the <tt>:builder</tt> option. The method also accepts
74
74
# options like <tt>:dasherize</tt> and friends, they are forwarded to the builder.
75
75
def to_xml ( options = { } )
76
- require "active_support/builder" unless defined? ( Builder ) && defined? ( Builder ::XmlMarkup )
76
+ require "active_support/builder" unless defined? ( Builder ::XmlMarkup )
77
77
78
78
options = options . dup
79
79
options [ :indent ] ||= 2
You can’t perform that action at this time.
0 commit comments