lib/google/cloud/firestore/document_reference.rb in google-cloud-firestore-0.25.0 vs lib/google/cloud/firestore/document_reference.rb in google-cloud-firestore-0.25.1
- old
+ new
@@ -89,14 +89,14 @@
# end
#
def cols
ensure_service!
- return enum_for(:cols) unless block_given?
+ return enum_for :cols unless block_given?
collection_ids = service.list_collections path
- collection_ids.each { |collection_id| yield col(collection_id) }
+ collection_ids.each { |collection_id| yield col collection_id }
end
alias collections cols
alias list_collections cols
##
@@ -471,10 +471,10 @@
protected
##
# @private
def parent_path
- path.split("/")[0...-1].join("/")
+ path.split("/")[0...-1].join "/"
end
##
# @private The client's Service object.
def service