Sha256: 6f0e529099788e4d0a19dc8b20bf74f5d174979bb8f4332e49d68618f50c721b

Contents?: true

Size: 507 Bytes

Versions: 28

Compression:

Stored size: 507 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)
        PersistenceContext.clear(klass, original_cluster)
      end
    end
  end
end

Version data entries

28 entries across 26 versions & 2 rubygems

Version Path
mongoid-6.4.8 lib/mongoid/criteria/options.rb
mongoid-6.4.7 lib/mongoid/criteria/options.rb
mongoid-6.4.5 lib/mongoid/criteria/options.rb
mongoid-6.4.4 lib/mongoid/criteria/options.rb
mongoid-6.4.2 lib/mongoid/criteria/options.rb
mongoid-7.0.2 lib/mongoid/criteria/options.rb
mongoid-7.0.1 lib/mongoid/criteria/options.rb
mongoid-6.4.1 lib/mongoid/criteria/options.rb
tdiary-5.0.8 vendor/bundle/gems/mongoid-6.4.0/lib/mongoid/criteria/options.rb
mongoid-7.0.0 lib/mongoid/criteria/options.rb
mongoid-6.4.0 lib/mongoid/criteria/options.rb
mongoid-6.3.0 lib/mongoid/criteria/options.rb
mongoid-6.2.1 lib/mongoid/criteria/options.rb
mongoid-7.0.0.beta lib/mongoid/criteria/options.rb
tdiary-5.0.5 vendor/bundle/gems/mongoid-6.1.0/lib/mongoid/criteria/options.rb
tdiary-5.0.5 vendor/bundle/gems/mongoid-6.2.0/lib/mongoid/criteria/options.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/mongoid-6.1.0/lib/mongoid/criteria/options.rb
mongoid-6.2.0 lib/mongoid/criteria/options.rb
mongoid-6.1.1 lib/mongoid/criteria/options.rb
tdiary-5.0.4 vendor/bundle/gems/mongoid-6.1.0/lib/mongoid/criteria/options.rb