Method: Mongoid::Threaded#exit_validate

Defined in:
lib/mongoid/threaded.rb

#exit_validate(document) ⇒ Object

Exit validating a document on the current thread.

Examples:

Exit validation.

Threaded.exit_validate(doc)

Parameters:

  • document (Document)

    The document to validate.

Since:

  • 2.1.9



110
111
112
# File 'lib/mongoid/threaded.rb', line 110

def exit_validate(document)
  validations_for(document.class).delete_one(document.id)
end