File tree Expand file tree Collapse file tree
activesupport/lib/active_support/core_ext Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def to_formatted_s(format = :default)
181181 # </messages>
182182 #
183183 def to_xml ( options = { } )
184- require "active_support/builder" unless defined? ( Builder )
184+ require "active_support/builder" unless defined? ( Builder :: XmlMarkup )
185185
186186 options = options . dup
187187 options [ :indent ] ||= 2
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class Hash
7373 # configure your own builder with the <tt>:builder</tt> option. The method also accepts
7474 # options like <tt>:dasherize</tt> and friends, they are forwarded to the builder.
7575 def to_xml ( options = { } )
76- require "active_support/builder" unless defined? ( Builder ) && defined? ( Builder ::XmlMarkup )
76+ require "active_support/builder" unless defined? ( Builder ::XmlMarkup )
7777
7878 options = options . dup
7979 options [ :indent ] ||= 2
You can’t perform that action at this time.
0 commit comments