|
175 | 175 | \_\_end\n\n
|
176 | 176 | Refer to:
|
177 | 177 | https://docs.mongodb.com/mongoid/current/reference/fields/#custom-field-options"
|
178 |
| - invalid_field_type: |
179 |
| - message: "Invalid field type %{type_inspection} for field '%{field}' on model '%{klass}'." |
180 |
| - summary: "Model '%{klass}' declares a field '%{field}' with an unknown type value |
181 |
| - %{type_inspection}. This value is neither present in Mongoid's default type mapping, |
182 |
| - nor defined in a custom field type mapping." |
183 |
| - resolution: "Please provide a valid type value for the field. If you |
184 |
| - meant to define a custom field type, please do so first as follows:\n\n |
185 |
| - \_\_Mongoid::Fields.configure do\n |
186 |
| - \_\_\_\_define_type %{type_inspection}, YourTypeClass |
187 |
| - \_\_end\n |
188 |
| - \_\_class %{klass}\n |
189 |
| - \_\_\_\_include Mongoid::Document\n |
190 |
| - \_\_\_\_field :%{field}, type: %{type_inspection}\n |
191 |
| - \_\_end\n\n |
192 |
| - Refer to: |
193 |
| - https://docs.mongodb.com/mongoid/current/reference/fields/#custom-field-types" |
194 | 178 | invalid_includes:
|
195 | 179 | message: "Invalid includes directive: %{klass}.includes(%{args})"
|
196 | 180 | summary: "Eager loading in Mongoid only supports providing arguments
|
|
572 | 556 | resolution: "Define the field '%{name}' in %{klass}, or include
|
573 | 557 | Mongoid::Attributes::Dynamic in %{klass} if you intend to
|
574 | 558 | store values in fields that are not explicitly defined."
|
| 559 | + unknown_field_type: |
| 560 | + message: "Unknown field type %{type_inspection} for field '%{field}' on model '%{klass}'." |
| 561 | + summary: "Model '%{klass}' declares a field '%{field}' with an unknown type value |
| 562 | + %{type_inspection}. This value is neither present in Mongoid's default type mapping, |
| 563 | + nor defined in a custom field type mapping." |
| 564 | + resolution: "Please provide a known type value for the field. If you |
| 565 | + meant to define a custom field type, please do so first as follows:\n\n |
| 566 | + \_\_Mongoid::Fields.configure do\n |
| 567 | + \_\_\_\_define_type %{type_inspection}, YourTypeClass |
| 568 | + \_\_end\n |
| 569 | + \_\_class %{klass}\n |
| 570 | + \_\_\_\_include Mongoid::Document\n |
| 571 | + \_\_\_\_field :%{field}, type: %{type_inspection}\n |
| 572 | + \_\_end\n\n |
| 573 | + Refer to: |
| 574 | + https://docs.mongodb.com/mongoid/current/reference/fields/#custom-field-types" |
575 | 575 | unknown_model:
|
576 | 576 | message: "Attempted to instantiate an object of the unknown model '%{klass}'."
|
577 | 577 | summary: "A document with the value '%{value}' at the key '_type' was used to
|
|
0 commit comments