Module: MongoMapper::Plugins::Validations::DocumentMacros

Defined in:
lib/mongo_mapper/plugins/validations.rb

Instance Method Summary collapse

Instance Method Details

#validates_uniqueness_of(*args) ⇒ Object



13
14
15
# File 'lib/mongo_mapper/plugins/validations.rb', line 13

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