lib/heliodor/query_internal.rb in heliodor-0.2.0 vs lib/heliodor/query_internal.rb in heliodor-0.2.1

- old
+ new

@@ -19,12 +19,12 @@ out << item if item.class.ancestors.include?(Hash) && item >= dat end @dat = out end - def _update(_dat1 = {}, dat2 = {}) + def _update(dat1 = {}, dat2 = {}) @dat.each_with_index do |v, k| - @dat[k] = v.merge(dat2) if v.class.ancestors.include?(Hash) && v >= dat + @dat[k] = v.merge(dat2) if v.class.ancestors.include?(Hash) && v >= dat1 end end def _map(&_block) @dat.each_with_index do |v, k|