lib/dynamoid/adapter.rb in dynamoid-3.4.1 vs lib/dynamoid/adapter.rb in dynamoid-3.5.0

- old
+ new

@@ -1,11 +1,11 @@ # frozen_string_literal: true # require only 'concurrent/atom' once this issue is resolved: # https://github.com/ruby-concurrency/concurrent-ruby/pull/377 require 'concurrent' -require "dynamoid/adapter_plugin/aws_sdk_v3" +require 'dynamoid/adapter_plugin/aws_sdk_v3' # encoding: utf-8 module Dynamoid # Adapter's value-add: # 1) For the rest of Dynamoid, the gateway to DynamoDB. @@ -92,10 +92,10 @@ # Delete an item from a table. # # @param [String] table the name of the table to write the object to # @param [Array] ids to delete, can also be a string of just one id - # @param [Array] range_key of the record to delete, can also be a string of just one range_key + # @param [Hash] range_key of the record to delete, can also be a string of just one range_key # def delete(table, ids, options = {}) range_key = options[:range_key] # array of range keys that matches the ids passed in if ids.respond_to?(:each) ids = if range_key.respond_to?(:each)