Module: Mongo::Operation::Limited
- Included in:
- Commands::Command, Write::Command::Writable
- Defined in:
- lib/mongo/operation/limited.rb
Overview
Adds behaviour for commands so ensure the limit option is always -1.
Instance Method Summary collapse
-
#options ⇒ Hash
Limited operations are commands that always require a limit of -1.
Instance Method Details
#options ⇒ Hash
Limited operations are commands that always require a limit of -1. In these cases we always overwrite the limit value.
32 33 34 |
# File 'lib/mongo/operation/limited.rb', line 32 def super.merge(:limit => -1) end |