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

files are a special case and need whitespace to be significant

上级 d01be122
......@@ -108,7 +108,7 @@ def typecast_xml_value(value)
raise "can't typecast #{entries.inspect}"
end
end
elsif value.has_key?("__content__") && value["__content__"].present?
elsif value['type'] == 'file' || 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.
先完成此消息的编辑!
想要评论请 注册