Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gsub is not needed (thanks @fxn!)

  • Loading branch information...
commit 45683fb6c201fdad1df4b7047f981cf866df2a7c 1 parent b41d8f3
@indirect indirect authored dhh committed
View
2  activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -96,7 +96,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)
Please sign in to comment.
Something went wrong with that request. Please try again.