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 189189 resolution : " When defining the field :%{name} on '%{klass}', please provide
190190 valid options for the field. These are currently: %{valid}. If you
191191 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
194194 \_\_\_\_\_\_ # Your logic here...\n
195195 \_\_\_\_ end\n
196196 \_\_ end\n
601601 nor defined in a custom field type mapping."
602602 resolution : " Please provide a known type value for the field. If you
603603 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
606606 \_\_ end\n
607607 \_\_ class %{klass}\n
608608 \_\_\_\_ include Mongoid::Document\n
You can’t perform that action at this time.
0 commit comments