lib/dynamoid/adapter.rb in dynamoid-3.8.0 vs lib/dynamoid/adapter.rb in dynamoid-3.9.0

- old
+ new

@@ -140,11 +140,11 @@ idx = tables.index(table_name) tables.delete_at(idx) end end - %i[batch_get_item delete_item get_item list_tables put_item truncate batch_write_item batch_delete_item].each do |m| + %i[batch_get_item delete_item get_item list_tables put_item truncate batch_write_item batch_delete_item execute].each do |m| # Method delegation with benchmark to the underlying adapter. Faster than relying on method_missing. # # @since 0.2.0 define_method(m) do |*args, &blk| benchmark(m, *args) { adapter.send(m, *args, &blk) } @@ -161,9 +161,10 @@ # with keyword arguments in adapter. # # https://eregon.me/blog/2019/11/10/the-delegation-challenge-of-ruby27.html return benchmark(method, *args) { adapter.send(method, *args, &block) } if adapter.respond_to?(method) + super end # Query the DynamoDB table. This employs DynamoDB's indexes so is generally faster than scanning, but is # only really useful for range queries, since it can only find by one hash key at once. Only provide