module Mongoid::Validatable::Macros
def validates_associated(*args)
-
*args(Object...) -- The arguments to pass to the validator.
def validates_associated(*args) validates_with(AssociatedValidator, _merge_attributes(args)) end
def validates_format_of(*args)
-
*args(Object...) -- The names of the field(s) to validate.
def validates_format_of(*args) validates_with(FormatValidator, _merge_attributes(args)) end
def validates_length_of(*args)
-
*args(Object...) -- The names of the field(s) to validate.
def validates_length_of(*args) validates_with(LengthValidator, _merge_attributes(args)) end
def validates_presence_of(*args)
-
*args(Object...) -- The names of the field(s) to validate.
def validates_presence_of(*args) validates_with(PresenceValidator, _merge_attributes(args)) end
def validates_uniqueness_of(*args)
-
*args(Object...) -- The arguments to pass to the validator.
def validates_uniqueness_of(*args) validates_with(UniquenessValidator, _merge_attributes(args)) end