123456789_123456789_123456789_123456789_123456789_

Module: Mongoid::Criteria::Options

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/mongoid/criteria/options.rb

Overview

Module containing functionality for getting options on a ::Mongoid::Criteria object.

Instance Method Summary

Instance Method Details

#clear_persistence_context(original_cluster, original_context) (private)

[ GitHub ]

  
# File 'lib/mongoid/criteria/options.rb', line 20

def clear_persistence_context(original_cluster, original_context)
  PersistenceContext.clear(klass, original_cluster, original_context)
end

#persistence_context (private)

[ GitHub ]

  
# File 'lib/mongoid/criteria/options.rb', line 12

def persistence_context
  klass.persistence_context
end

#set_persistence_context(options) (private)

[ GitHub ]

  
# File 'lib/mongoid/criteria/options.rb', line 16

def set_persistence_context(options)
  PersistenceContext.set(klass, options)
end