Skip to content

Commit

Permalink
Merge pull request #38939 from hammerdr/38937
Browse files Browse the repository at this point in the history
Load XML Builder if it is not available
  • Loading branch information
rafaelfranca committed Apr 13, 2020
1 parent a479c88 commit da8f631
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -73,7 +73,7 @@ class Hash
# configure your own builder with the <tt>:builder</tt> option. The method also accepts
# options like <tt>:dasherize</tt> and friends, they are forwarded to the builder.
def to_xml(options = {})
require "active_support/builder" unless defined?(Builder)
require "active_support/builder" unless defined?(Builder) && defined?(Builder::XmlMarkup)

options = options.dup
options[:indent] ||= 2
Expand Down

0 comments on commit da8f631

Please sign in to comment.