@@ -318,15 +318,15 @@ def running_with_passenger?
318318 #
319319 # @example
320320 # Mongoid.configure do |config|
321- # config.define_field_type :point, Point
321+ # config.field_type :point, Point
322322 # end
323323 #
324324 # @param [ Symbol | String ] type_name The identifier of the
325325 # defined type. This identifier may be accessible as either a
326326 # Symbol or a String regardless of the type passed to this method.
327327 # @param [ Module ] klass the class of the defined type, which must
328328 # include mongoize, demongoize, and evolve methods.
329- def define_field_type ( type_name , klass )
329+ def field_type ( type_name , klass )
330330 Mongoid ::Fields ::FieldTypes . define_type ( type_name , klass )
331331 end
332332
@@ -339,15 +339,15 @@ def define_field_type(type_name, klass)
339339 #
340340 # @example
341341 # Mongoid.configure do |config|
342- # config.define_field_option :required do |model, field, value|
342+ # config.field_option :required do |model, field, value|
343343 # model.validates_presence_of field.name if value
344344 # end
345345 # end
346346 #
347347 # @param [ Symbol ] option_name the option name to match against
348348 # @param [ Proc ] block the handler to execute when the option is
349349 # provided.
350- def define_field_option ( option_name , &block )
350+ def field_option ( option_name , &block )
351351 Mongoid ::Fields . option ( option_name , &block )
352352 end
353353
0 commit comments