未验证 提交 da8f6318 编写于 作者: R Rafael França 提交者: Rafael Mendonça França

Merge pull request #38939 from hammerdr/38937

Load XML Builder if it is not available
上级 a479c88f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册