Module: MongoMapper::Validations::Macros

Defined in:
lib/mongomapper/validations.rb

Instance Method Summary collapse

Instance Method Details

#validates_exclusion_of(*args) ⇒ Object



8
9
10
# File 'lib/mongomapper/validations.rb', line 8

def validates_exclusion_of(*args)
  add_validations(args, MongoMapper::Validations::ValidatesExclusionOf)
end

#validates_inclusion_of(*args) ⇒ Object



12
13
14
# File 'lib/mongomapper/validations.rb', line 12

def validates_inclusion_of(*args)
  add_validations(args, MongoMapper::Validations::ValidatesInclusionOf)
end

#validates_uniqueness_of(*args) ⇒ Object



4
5
6
# File 'lib/mongomapper/validations.rb', line 4

def validates_uniqueness_of(*args)
  add_validations(args, MongoMapper::Validations::ValidatesUniquenessOf)
end