Sha256: e2bbb53348dfe2070e0d5bd9e663243a9d8f2a445739a74251809a53e773fe91

Contents?: true

Size: 543 Bytes

Versions: 10

Compression:

Stored size: 543 Bytes

Contents

# encoding: utf-8
module Mongoid
  class Criteria

    # Module containing functionality for getting options on a Criteria object.
    #
    # @since 6.0.0
    module Options

      private

      def persistence_context
        klass.persistence_context
      end

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mongoid-7.0.13 lib/mongoid/criteria/options.rb
mongoid-7.0.12 lib/mongoid/criteria/options.rb
mongoid-7.0.11 lib/mongoid/criteria/options.rb
mongoid-7.0.10 lib/mongoid/criteria/options.rb
mongoid-7.0.8 lib/mongoid/criteria/options.rb
mongoid-7.0.7 lib/mongoid/criteria/options.rb
mongoid-7.0.6 lib/mongoid/criteria/options.rb
mongoid-7.0.5 lib/mongoid/criteria/options.rb
mongoid-7.0.4 lib/mongoid/criteria/options.rb
mongoid-7.0.3 lib/mongoid/criteria/options.rb