lib/mongo/database/view.rb in mongo-2.0.4 vs lib/mongo/database/view.rb in mongo-2.0.5

- old
+ new

@@ -55,9 +55,21 @@ server.context.features.list_collections_enabled? ? info['name'] : info['name'].sub("#{@database.name}.", '') end end + # Get info on all the collections in the database. + # + # @example Get info on each collection. + # database.list_collections + # + # @return [ Array<Hash> ] Info for each collection in the database. + # + # @since 2.0.5 + def list_collections + collections_info(next_primary) + end + # Create the new database view. # # @example Create the new database view. # View::Index.new(database) #