Module: MongoDoc::Validations::ValidatesEmbedded

Defined in:
lib/mongo_doc/validations/validates_embedded.rb

Defined Under Namespace

Classes: EmbeddedValidator

Instance Method Summary collapse

Instance Method Details

#validates_embedded(*attr_names) ⇒ Object



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

def validates_embedded(*attr_names)
  validates_with EmbeddedValidator, _merge_attributes(attr_names)
end