Module: MongoMapper::Validations::Macros

Defined in:
lib/mongo_mapper/validations.rb

Instance Method Summary collapse

Instance Method Details

#validates_uniqueness_of(*args) ⇒ Object



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

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