lib/hash-tree.rb in hash-tree-0.0.1 vs lib/hash-tree.rb in hash-tree-0.0.2

- old
+ new

@@ -330,10 +330,10 @@ path_value.each do |p| if compare_values.is_a? Array values = [] compare_values.each { |v| values << v[p] } compare_values = values - elsif compare_values[p] != nil + elsif compare_values.is_a? Hash and compare_values[p] != nil compare_values = compare_values[p] else compare_values = nil break end