提交 d01be122 编写于 作者: A Andre Arko 提交者: David Heinemeier Hansson

gsub is not needed (thanks @fxn!)

上级 90246acb
......@@ -108,7 +108,7 @@ def typecast_xml_value(value)
raise "can't typecast #{entries.inspect}"
end
end
elsif value.has_key?("__content__") && value["__content__"].gsub(/\s/, '').present?
elsif value.has_key?("__content__") && value["__content__"].present?
content = value["__content__"]
if parser = ActiveSupport::XmlMini::PARSING[value["type"]]
parser.arity == 1 ? parser.call(content) : parser.call(content, value)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册