Method: Mongoid::Threaded#modified_documents

Defined in:
lib/mongoid/threaded.rb

#modified_documentsHash<Mongo::Session, Set<Mongoid::Document>>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the thread store of modified documents.

Returns:

  • (Hash<Mongo::Session, Set<Mongoid::Document>>)

    The modified documents indexed by session.



499
500
501
# File 'lib/mongoid/threaded.rb', line 499

def modified_documents
  get(MODIFIED_DOCUMENTS_KEY) { Hash.new { |h, k| h[k] = Set.new } }
end