Skip to content

Commit 0c1d1dd

Browse files
committed
MONGOID-5222 update error message
1 parent b11e424 commit 0c1d1dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/config/locales/en.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,10 @@ en:
373373
resolution: "Set the values from the parent, or redefine the association
374374
with only a single definition in the parent."
375375
invalid_value:
376-
message: "The value %{value} cannot be written to a field of type %{field_class}"
377-
summary: "The value %{value} could not be coerced to type %{field_class}"
378-
resolution: "Verify that the value to be set corresponds to the field definition"
376+
message: "The value %{value} cannot be written to a field of type %{field_class}."
377+
summary: "The value %{value} could not be coerced to type %{field_class}."
378+
resolution: "Verify that the value to be set corresponds to the field definition,
379+
or turn off the Mongoid.validate_attribute_types flag to have nil written."
379380
mixed_relations:
380381
message: "Referencing a(n) %{embedded} document from the %{root}
381382
document via a non-embedded association is not allowed since the

0 commit comments

Comments
 (0)