Skip to content

Commit d9dc0fc

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

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
@@ -851,7 +851,7 @@ be coerced to an Integer. To deal with this case, Mongoid has introduced the
851851
``validate_attribute_types`` flag.
852852

853853
When the ``validate_attribute_types`` flag is turned on, the assignment of uncastable
854-
values to a field will cause an ``InvalidValue`` error to be raised.
854+
values to a field will cause a ``Mongoid::Errors::InvalidValue`` exception being raised.
855855

856856
When the ``validate_attribute_types`` flag is turned off, the assignment of uncastable
857857
values to a field will cause a ``nil`` to be written.

0 commit comments

Comments
 (0)