Module: Mongoid::Fields::Validators::Macro
Overview
Validates the params passed to the field macro.
Constant Summary collapse
- OPTIONS =
[ :as, :default, :identity, :label, :localize, :metadata, :pre_processed, :subtype, :type, :overwrite ]
Instance Method Summary collapse
-
#validate(klass, name, options) ⇒ Object
Validate the field definition.
Instance Method Details
#validate(klass, name, options) ⇒ Object
Validate the field definition.
33 34 35 36 |
# File 'lib/mongoid/fields/validators/macro.rb', line 33 def validate(klass, name, ) validate_name(klass, name, ) (klass, name, ) end |