Module: MongoModel::Validations::ClassMethods — Documentation for spohlenz/mongomodel (master)Libraries » spohlenz/mongomodel (master) » Index (C) » MongoModel » Validations » ClassMethodsModule: MongoModel::Validations::ClassMethodslib/mongomodel/concerns/validations.rb,lib/mongomodel/concerns/validations/associated.rb# File 'lib/mongomodel/concerns/validations.rb', line 8if property.validate?validates_associated(name) if property.embeddable?validates_presence_of(name) if property.options[:required]validates_format_of(name, property.options[:format]) if property.options[:format]class Book < MongoModel::Documentclass Page < MongoModel::Document# File 'lib/mongomodel/concerns/validations/associated.rb', line 42Generated on Sun Aug 18 11:21:34 2019 by yard 0.9.20 (ruby-2.6.3).
