lib/dynamoid/adapter.rb in dynamoid-1.3.0 vs lib/dynamoid/adapter.rb in dynamoid-1.3.1
- old
+ new
@@ -15,10 +15,10 @@
@tables_ = Concurrent::Atom.new(nil)
end
def tables
if !@tables_.value
- @tables_.swap{|value, args| benchmark('Cache Tables') { list_tables } }
+ @tables_.swap{|value, args| benchmark('Cache Tables') { list_tables || [] } }
end
@tables_.value
end
# The actual adapter currently in use.