Method: Mongoid::Criterion::Optional#extras
- Defined in:
- lib/mongoid/criterion/optional.rb
#extras(extras) ⇒ Object
Adds a criterion to the Criteria that specifies additional options to be passed to the Ruby driver, in the exact format for the driver.
Options:
extras: A Hash that gets set to the driver options.
Example:
criteria.extras(:limit => 20, :skip => 40)
Returns: self
57 58 59 |
# File 'lib/mongoid/criterion/optional.rb', line 57 def extras(extras) .merge!(extras); ; self end |