We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43daebf commit f7b2e8cCopy full SHA for f7b2e8c
lib/mongo/database/view.rb
@@ -51,9 +51,9 @@ class View
51
def collection_names(options = {})
52
@batch_size = options[:batch_size]
53
server = next_primary
54
- @limit = -1 if server.context.features.list_collections_enabled?
+ @limit = -1 if server.features.list_collections_enabled?
55
collections_info(server).collect do |info|
56
- server.context.features.list_collections_enabled? ?
+ server.features.list_collections_enabled? ?
57
info[Database::NAME] : info[Database::NAME].sub("#{@database.name}.", '')
58
end
59
0 commit comments