25 lines
807 B
Ruby
25 lines
807 B
Ruby
# rubocop:todo all
|
|
Mongoid.configure do
|
|
target_version = "9.0"
|
|
|
|
# Load Mongoid behavior defaults. This automatically sets
|
|
# features flags (refer to documentation)
|
|
config.load_defaults target_version
|
|
|
|
# It is recommended to use config/mongoid.yml for most Mongoid-related
|
|
# configuration, whenever possible, but if you prefer, you can set
|
|
# configuration values here, instead:
|
|
#
|
|
# config.log_level = :debug
|
|
#
|
|
# Note that the settings in config/mongoid.yml always take precedence,
|
|
# whatever else is set here.
|
|
end
|
|
|
|
# Enable Mongo driver query cache for Rack
|
|
# Rails.application.config.middleware.use(Mongo::QueryCache::Middleware)
|
|
|
|
# Enable Mongo driver query cache for ActiveJob
|
|
# ActiveSupport.on_load(:active_job) do
|
|
# include Mongo::QueryCache::Middleware::ActiveJob
|
|
# end
|