Module Mongoid::Reloading
In: lib/mongoid/reloading.rb

This module handles reloading behaviour of documents.

Methods

reload  

Public Instance methods

Reloads the Document attributes from the database. If the document has not been saved then an error will get raised if the configuration option was set. This can reload root documents or embedded documents.

@example Reload the document.

  person.reload

@raise [ Errors::DocumentNotFound ] If the document was deleted.

@return [ Document ] The document, reloaded.

@since 1.0.0

[Validate]