lib/dynamoid/criteria/ignored_conditions_detector.rb in dynamoid-3.4.1 vs lib/dynamoid/criteria/ignored_conditions_detector.rb in dynamoid-3.5.0

- old
+ new

@@ -22,12 +22,12 @@ private def ignored_keys @conditions.keys .group_by(&method(:key_to_field)) - .select { |field, ary| ary.size > 1 } - .flat_map { |field, ary| ary[0 .. -2] } + .select { |_, ary| ary.size > 1 } + .flat_map { |_, ary| ary[0..-2] } end def key_to_field(key) key.to_s.split('.')[0] end @@ -36,6 +36,5 @@ @conditions.slice(*@ignored_keys) end end end end -