@@ -166,7 +166,7 @@ documents and does not query the database:
166
166
band.members.any?
167
167
168
168
Note that simply calling ``any?`` would *not* load the association
169
- (since ``any?`` only retrtieves the _id field of the first matching document).
169
+ (since ``any?`` only retrieves the _id field of the first matching document).
170
170
171
171
``exists?``
172
172
~~~~~~~~~~~
@@ -180,7 +180,7 @@ any *persisted* documents in the association. Unlike the ``any?`` method:
180
180
- ``exists?`` does not allow filtering in the application like ``any?`` does,
181
181
and does not take any arguments.
182
182
183
- The following examle illustrates the difference between ``exists?`` and
183
+ The following example illustrates the difference between ``exists?`` and
184
184
``any?``:
185
185
186
186
.. code-block:: ruby
@@ -919,7 +919,7 @@ is defined:
919
919
- ``:foreign_key`` is the field on the local model which stores the
920
920
``:primary_key`` values.
921
921
- ``:inverse_primary_key`` is the field on the local model that the remote
922
- model uses to look up the local model docuemnts .
922
+ model uses to look up the local model documents .
923
923
- ``:inverse_foreign_key`` is the field on the remote model storing the
924
924
values in ``:inverse_primary_key``.
925
925
@@ -1531,7 +1531,7 @@ are supported:
1531
1531
- `$project <https://docs.mongodb.com/manual/reference/operator/aggregation/project/>`_
1532
1532
- `$unwind <https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/>`_
1533
1533
1534
- To construct a pipeline, call the corresponding aggregation pipeine methods
1534
+ To construct a pipeline, call the corresponding aggregation pipeline methods
1535
1535
on a ``Criteria`` instance. Aggregation pipeline operations are added to the
1536
1536
``pipeline`` attribute of the ``Criteria`` instance. To execute the pipeline,
1537
1537
pass the ``pipeline`` attribute value to ``Collection#aggragegate`` method.
@@ -1592,7 +1592,7 @@ Alternatively, standard MongoDB aggregation pipeline syntax may be used:
1592
1592
1593
1593
.. code-block:: ruby
1594
1594
1595
- criteria = Tour.all.group(_id: 'states', states: {'$addtoSet ' => '$states'})
1595
+ criteria = Tour.all.group(_id: 'states', states: {'$addToSet ' => '$states'})
1596
1596
1597
1597
project
1598
1598
```````
@@ -1616,7 +1616,7 @@ unwind
1616
1616
The ``unwind`` method adds an `$unwind aggregation pipeline stage
1617
1617
<https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/>`_.
1618
1618
1619
- The argument can be a field name, specifyable as a symbol or a string, or
1619
+ The argument can be a field name, specifiable as a symbol or a string, or
1620
1620
a Hash or a ``BSON::Document`` instance:
1621
1621
1622
1622
.. code-block:: ruby
0 commit comments