Skip to content

Commit f7b2e8c

Browse files
committed
RUBY-1025 #features is available through a server directly
1 parent 43daebf commit f7b2e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongo/database/view.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ class View
5151
def collection_names(options = {})
5252
@batch_size = options[:batch_size]
5353
server = next_primary
54-
@limit = -1 if server.context.features.list_collections_enabled?
54+
@limit = -1 if server.features.list_collections_enabled?
5555
collections_info(server).collect do |info|
56-
server.context.features.list_collections_enabled? ?
56+
server.features.list_collections_enabled? ?
5757
info[Database::NAME] : info[Database::NAME].sub("#{@database.name}.", '')
5858
end
5959
end

0 commit comments

Comments
 (0)