lib/dynamoid/adapter.rb in dynamoid-1.3.3 vs lib/dynamoid/adapter.rb in dynamoid-1.3.4
- old
+ new
@@ -143,10 +143,10 @@
[:batch_get_item, :delete_item, :get_item, :list_tables, :put_item, :truncate, :batch_write_item, :batch_delete_item].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|
- benchmark("#{m.to_s}", args) {adapter.send(m, *args)}
+ benchmark("#{m.to_s}", *args) {adapter.send(m, *args)}
end
end
# Delegate all methods that aren't defind here to the underlying adapter.
#