Skip to content

Commit

Permalink
docs: fix typos in comment (#5807)
Browse files Browse the repository at this point in the history
  • Loading branch information
stayweek authored Apr 1, 2024
1 parent 85de452 commit 7d752dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/reference/configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,15 @@ for details on driver options.
driver_options:
# When this flag is off, an aggregation done on a view will be executed over
# the documents included in that view, instead of all documents in the
# collection. When this flag is on, the view fiter is ignored.
# collection. When this flag is on, the view filter is ignored.
# broken_view_aggregate: true

# When this flag is set to false, the view options will be correctly
# propagated to readable methods.
# broken_view_options: true

# When this flag is set to true, the update and replace methods will
# validate the paramters and raise an error if they are invalid.
# validate the parameters and raise an error if they are invalid.
# validate_update_replace: false


Expand Down
6 changes: 3 additions & 3 deletions docs/reference/fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ Reading Uncastable Values
`````````````````````````

When documents in the database contain values of different types than their
represenations in Mongoid, if Mongoid cannot coerce them into the correct type,
representations in Mongoid, if Mongoid cannot coerce them into the correct type,
it will replace the value with ``nil``. Consider the following model and document in the
database:

Expand Down Expand Up @@ -1105,7 +1105,7 @@ used for MongoDB serialization and deserialization as follows:
end

The instance method ``mongoize`` takes an instance of your custom type object, and
converts it into a represenation of how it will be stored in the database, i.e. to pass
converts it into a representation of how it will be stored in the database, i.e. to pass
to the MongoDB Ruby driver. In our example above, we want to store our ``Point``
object as an ``Array`` in the form ``[ x, y ]``.

Expand Down Expand Up @@ -1228,7 +1228,7 @@ which extend its behavior at the your time model classes are loaded.

As an example, we will define a ``:max_length`` option which will add a length
validator for the field. First, declare the new field option in an initializer,
specifiying its handler function as a block:
specifying its handler function as a block:

.. code-block:: ruby

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/rails-integration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ other Rails environment specific options by accessing config.mongoid. The
``mongoid:config`` generator will create an initializer in
``config/initializers/mongoid.rb`` which can also be used for configuring
Mongoid. Note, though, that options set in your ``config/mongoid.yml`` will
take precendence over options set elsewhere; it is recommended that whenever
take precedence over options set elsewhere; it is recommended that whenever
possible you use ``mongoid.yml`` as the default location for Mongoid
configuration.

Expand Down

0 comments on commit 7d752dc

Please sign in to comment.