File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 189
189
resolution : " When defining the field :%{name} on '%{klass}', please provide
190
190
valid options for the field. These are currently: %{valid}. If you
191
191
meant to define a custom field option, please do so first as follows:\n\n
192
- \_\_ Mongoid::Fields .configure do\n
193
- \_\_\_\_ option :%{option} do |model, field, value|\n
192
+ \_\_ Mongoid.configure do |config| \n
193
+ \_\_\_\_ config.define_field_option :%{option} do |model, field, value|\n
194
194
\_\_\_\_\_\_ # Your logic here...\n
195
195
\_\_\_\_ end\n
196
196
\_\_ end\n
601
601
nor defined in a custom field type mapping."
602
602
resolution : " Please provide a known type value for the field. If you
603
603
meant to define a custom field type, please do so first as follows:\n\n
604
- \_\_ Mongoid::Fields .configure do\n
605
- \_\_\_\_ define_type %{type_inspection}, YourTypeClass
604
+ \_\_ Mongoid.configure do |config| \n
605
+ \_\_\_\_ config.define_field_type %{type_inspection}, YourTypeClass
606
606
\_\_ end\n
607
607
\_\_ class %{klass}\n
608
608
\_\_\_\_ include Mongoid::Document\n
You can’t perform that action at this time.
0 commit comments