We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b1f6b0 commit 68b9227Copy full SHA for 68b9227
docs/reference/fields.txt
@@ -1009,7 +1009,7 @@ setter methods for fields of your custom type.
1009
1010
.. note::
1011
1012
- The ``mongoize`` method should raise an "InvalidValue" error on values that
+ The ``mongoize`` method should raise a ``Mongoid::Errors::InvalidValue`` on values that
1013
are uncastable to your custom type. Mongoid will handle catching that error
1014
and writing ``nil`` if the ``validate_attribute_types`` flag is turned off.
1015
See the secion on :ref:`Uncastable Values <uncastable-values>` for more
0 commit comments