Skip to content

Commit 68b9227

Browse files
neilshwekyp-mongo
andcommitted
Update docs/reference/fields.txt
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 2b1f6b0 commit 68b9227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/fields.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ setter methods for fields of your custom type.
10091009

10101010
.. note::
10111011

1012-
The ``mongoize`` method should raise an "InvalidValue" error on values that
1012+
The ``mongoize`` method should raise a ``Mongoid::Errors::InvalidValue`` on values that
10131013
are uncastable to your custom type. Mongoid will handle catching that error
10141014
and writing ``nil`` if the ``validate_attribute_types`` flag is turned off.
10151015
See the secion on :ref:`Uncastable Values <uncastable-values>` for more

0 commit comments

Comments
 (0)