123456789_123456789_123456789_123456789_123456789_

Module: Mongoid::Config::Validators::AsyncQueryExecutor Private

Do not use. This module is for internal use only.
Relationships & Source Files
Defined in: lib/mongoid/config/validators/async_query_executor.rb

Overview

Validates the async query executor options in the ::Mongoid configuration. Used during application bootstrapping.

Instance Method Summary

Instance Method Details

#validate(options)

Validate the ::Mongoid configuration options related to the async query executor.

Parameters:

  • options (Hash)

    The configuration options.

[ GitHub ]

  
# File 'lib/mongoid/config/validators/async_query_executor.rb', line 24

def validate(options)
  if options.key?(:async_query_executor)
    if options[:async_query_executor].to_sym == :immediate && !options[:global_executor_concurrency].nil?
      raise Errors::InvalidGlobalExecutorConcurrency
    end
  end
end