lib/sucker/response.rb in sucker-1.3.0.pre vs lib/sucker/response.rb in sucker-1.3.0.pre.1

- old
+ new

@@ -73,11 +73,12 @@ node.map { |child| strip_content(child) } when Hash if node.keys.size == 1 && node['__content__'] node['__content__'] else - node.inject({}) do |attributes, key_value| - attributes.merge({ key_value.first => strip_content(key_value.last) }) + node.inject({}) do |attributes, kv| + k, v = kv + attributes.merge({ k => strip_content(v) }) end end else node end