lib/esse/index/object_document_mapper.rb in esse-0.3.5 vs lib/esse/index/object_document_mapper.rb in esse-0.4.0.rc1
- old
+ new
@@ -22,10 +22,10 @@
#
# @param [String, NilClass] repo_name The repository identifier
# @return [Enumerator] All serialized entries
def documents(repo_name = nil, **kwargs)
Enumerator.new do |yielder|
- each_serialized_batch(repo_name, **kwargs) do |documents, **_collection_kargs|
+ each_serialized_batch(repo_name, **kwargs) do |documents|
documents.each { |document| yielder.yield(document) }
end
end
end
end