Skip to content

Commit d82d49f

Browse files
author
stayweek
authored
docs: fix typos in comment (#5807)
1 parent a62cf2a commit d82d49f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

source/reference/configuration.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,15 +396,15 @@ for details on driver options.
396396
driver_options:
397397
# When this flag is off, an aggregation done on a view will be executed over
398398
# the documents included in that view, instead of all documents in the
399-
# collection. When this flag is on, the view fiter is ignored.
399+
# collection. When this flag is on, the view filter is ignored.
400400
# broken_view_aggregate: true
401401

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

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

410410

source/reference/fields.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ Reading Uncastable Values
927927
`````````````````````````
928928

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

@@ -1105,7 +1105,7 @@ used for MongoDB serialization and deserialization as follows:
11051105
end
11061106

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

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

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

12331233
.. code-block:: ruby
12341234

source/reference/rails-integration.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ other Rails environment specific options by accessing config.mongoid. The
2424
``mongoid:config`` generator will create an initializer in
2525
``config/initializers/mongoid.rb`` which can also be used for configuring
2626
Mongoid. Note, though, that options set in your ``config/mongoid.yml`` will
27-
take precendence over options set elsewhere; it is recommended that whenever
27+
take precedence over options set elsewhere; it is recommended that whenever
2828
possible you use ``mongoid.yml`` as the default location for Mongoid
2929
configuration.
3030

0 commit comments

Comments
 (0)