Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/mongoid/criteria/queryable/optional.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ def limit(value = nil)
# @param [ Integer ] value The max number of documents to scan.
#
# @return [ Optional ] The cloned optional.
#
# @deprecated The max_scan option is deprecated in MongoDB 4.0 and later.
# Use max_time_ms instead.
def max_scan(value = nil)
option(value) { |options| options.store(:max_scan, value) }
end
Mongoid.deprecate(self, :max_scan)
Comment on lines 97 to +100

# Adds a cumulative time limit in milliseconds for processing operations on a cursor.
#
Expand Down
Loading