Skip to content

Commit c2e064c

Browse files
Update errors
1 parent e8046dc commit c2e064c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/config/locales/en.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ en:
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
@@ -601,8 +601,8 @@ en:
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

0 commit comments

Comments
 (0)