|
101 | 101 | options are: %{options}."
|
102 | 102 | resolution: "Remove the invalid option or fix the typo. If you were
|
103 | 103 | expecting the option to be there, please consult the following page
|
104 |
| - with repect to Mongoid's configuration:\n\n |
| 104 | + with respect to Mongoid's configuration:\n\n |
105 | 105 | \_\_http://mongoid.org/en/mongoid/docs/installation.html"
|
106 | 106 | invalid_dependent_strategy:
|
107 | 107 | message: "Invalid dependent strategy: %{invalid_strategy}."
|
|
124 | 124 | invalid_estimated_count_criteria:
|
125 | 125 | message: "Invalid criteria for estimated_count."
|
126 | 126 | summary: "Estimated count is strictly a collection-level operation and cannot be called
|
127 |
| - on a filtered critera." |
| 127 | + on a filtered criteria." |
128 | 128 | resolution: "Try calling estimated_count directly on the class: %{class_name}.estimated_count.\n\n
|
129 | 129 | \_If the class defines a default scope, use unscoped: %{class_name}.unscoped.estimated_count."
|
130 | 130 | invalid_expression_operator:
|
|
255 | 255 | message: "Defining a scope of value %{value} on %{klass} is not
|
256 | 256 | allowed."
|
257 | 257 | summary: "Scopes in Mongoid must be procs that wrap criteria objects."
|
258 |
| - resolution: "Change the scope to be a proc wrapped critera.\n\n |
| 258 | + resolution: "Change the scope to be a proc wrapped criteria.\n\n |
259 | 259 | Example:\n
|
260 | 260 | \_\_class Band\n
|
261 | 261 | \_\_\_\_include Mongoid::Document\n
|
|
400 | 400 | resolution: "Make sure some environment is set from the mentioned
|
401 | 401 | options. Mongoid cannot load configuration from the yaml without
|
402 | 402 | knowing which environment it is in, and we have considered
|
403 |
| - defaulting to development an undesireable side effect of this not |
| 403 | + defaulting to development an undesirable side effect of this not |
404 | 404 | being defined."
|
405 | 405 | no_map_reduce_output:
|
406 | 406 | message: "No output location was specified for the map/reduce
|
|
450 | 450 | to connect."
|
451 | 451 | resolution: "Double check your mongoid.yml to make sure under the
|
452 | 452 | clients key that a configuration exists for '%{name}'. If you
|
453 |
| - have set the configuration programatically, ensure that '%{name}' |
| 453 | + have set the configuration programmatically, ensure that '%{name}' |
454 | 454 | exists in the configuration hash."
|
455 | 455 | no_clients_config:
|
456 | 456 | message: "No clients configuration provided."
|
@@ -542,13 +542,14 @@ en:
|
542 | 542 | unknown_attribute:
|
543 | 543 | message: "Attempted to set a value for '%{name}' which is not
|
544 | 544 | allowed on the model %{klass}."
|
545 |
| - summary: "Without including Mongoid::Attributes::Dynamic in your model |
546 |
| - and the attribute does not already exist in the attributes hash, |
547 |
| - attempting to call %{klass}#%{name}= for it is not allowed. This is |
548 |
| - also triggered by passing the attribute to any method that accepts an |
549 |
| - attributes hash, and is raised instead of getting a NoMethodError." |
550 |
| - resolution: "You can include Mongoid::Attributes::Dynamic if you |
551 |
| - expect to be writing values for undefined fields often." |
| 545 | + summary: "%{klass}#%{name}= was called but there is no '%{name}' |
| 546 | + field defined in the model, and Mongoid::Attributes::Dynamic is |
| 547 | + not included. This error is also raised instead of NoMethodError |
| 548 | + if the unknown attribute is passed to any method that accepts an |
| 549 | + attributes hash, such as #attributes=." |
| 550 | + resolution: "Define the field '%{name}' in %{klass}, or include |
| 551 | + Mongoid::Attributes::Dynamic in %{klass} if you intend to |
| 552 | + store values in fields that are not explicitly defined." |
552 | 553 | unknown_model:
|
553 | 554 | message: "Attempted to instantiate an object of the unknown Model '%{klass}'."
|
554 | 555 | summary: "A document with the value '%{value}' at the key '_type' was used to
|
|
0 commit comments