Skip to content

Commit

Permalink
gsub is not needed (thanks @fxn!)
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect authored and dhh committed Apr 14, 2011
1 parent b41d8f3 commit 45683fb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)
Expand Down

0 comments on commit 45683fb

Please sign in to comment.