Skip to content
This repository
Browse code

files are a special case and need whitespace to be significant

  • Loading branch information...
commit 3d150190d89eaedf296789fd638fa978b03d44b4 1 parent 45683fb
André Arko indirect authored dhh committed
2  activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -96,7 +96,7 @@ def typecast_xml_value(value)
96 96 raise "can't typecast #{entries.inspect}"
97 97 end
98 98 end
99   - elsif value.has_key?("__content__") && value["__content__"].present?
  99 + elsif value['type'] == 'file' || value["__content__"].present?
100 100 content = value["__content__"]
101 101 if parser = ActiveSupport::XmlMini::PARSING[value["type"]]
102 102 parser.arity == 1 ? parser.call(content) : parser.call(content, value)

0 comments on commit 3d15019

Please sign in to comment.
Something went wrong with that request. Please try again.