Module: Mongoid::Config::Validators::AsyncQueryExecutor Private
- Extended by:
- AsyncQueryExecutor
- Included in:
- AsyncQueryExecutor
- Defined in:
- lib/mongoid/config/validators/async_query_executor.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Validates the async query executor options in the Mongoid configuration. Used during application bootstrapping.
Instance Method Summary collapse
-
#validate(options) ⇒ Object
private
Validate the Mongoid configuration options related to the async query executor.
Instance Method Details
#validate(options) ⇒ Object
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.
Validate the Mongoid configuration options related to the async query executor.
24 25 26 27 28 29 30 |
# File 'lib/mongoid/config/validators/async_query_executor.rb', line 24 def validate() if .key?(:async_query_executor) if [:async_query_executor].to_sym == :immediate && ![:global_executor_concurrency].nil? raise Errors::InvalidGlobalExecutorConcurrency end end end |