lib/dynamoid/adapter.rb in dynamoid-0.4.1 vs lib/dynamoid/adapter.rb in dynamoid-0.5.0
- old
+ new
@@ -5,11 +5,11 @@
# to Dynamoid.
module Adapter
extend self
attr_accessor :tables
- # The actual adapter currently in use: presently, either AwsSdk or Local.
+ # The actual adapter currently in use: presently AwsSdk.
#
# @since 0.2.0
def adapter
reconnect! unless @adapter
@adapter
@@ -162,11 +162,11 @@
end
# Delegate all methods that aren't defind here to the underlying adapter.
#
# @since 0.2.0
- def method_missing(method, *args)
- return benchmark(method, *args) {adapter.send(method, *args)} if @adapter.respond_to?(method)
+ def method_missing(method, *args, &block)
+ return benchmark(method, *args) {adapter.send(method, *args, &block)} if @adapter.respond_to?(method)
super
end
end