lib/dynamoid/adapter/aws_sdk.rb in dynamoid-moda-0.7.1 vs lib/dynamoid/adapter/aws_sdk.rb in dynamoid-moda-0.7.2

- old
+ new

@@ -259,10 +259,10 @@ when "BETWEEN" table.items.where(key).between(scan_hash[key][0], scan_hash[key][1]).select(select_opts).each do |data| yielder.yield data.attributes.symbolize_keys! end when "BEGINS_WITH" - table.items.where(key).between(scan_hash[key][0], scan_hash[key][1]).select(select_opts).each do |data| + table.items.where(key).begins_with(scan_hash[key]).select(select_opts).each do |data| yielder.yield data.attributes.symbolize_keys! end when "CONTAINS" table.items.where(key).contains(scan_hash[key]).select(select_opts).each do |data| yielder.yield data.attributes.symbolize_keys!