mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
files are a special case and need whitespace to be significant
This commit is contained in:
committed by
David Heinemeier Hansson
parent
d01be122b8
commit
bd032fe97e
@@ -108,7 +108,7 @@ class Hash
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user