Module: MongoMapper::Plugins::Validations::ClassMethods
- Defined in:
- lib/mongo_mapper/plugins/validations.rb
Instance Method Summary collapse
Instance Method Details
#validates_associated(*attr_names) ⇒ Object
15 16 17 |
# File 'lib/mongo_mapper/plugins/validations.rb', line 15 def validates_associated(*attr_names) validates_with AssociatedValidator, _merge_attributes(attr_names) end |
#validates_uniqueness_of(*attr_names) ⇒ Object
11 12 13 |
# File 'lib/mongo_mapper/plugins/validations.rb', line 11 def validates_uniqueness_of(*attr_names) validates_with UniquenessValidator, _merge_attributes(attr_names) end |