lib/mongoid.rb in mongoid-4.0.0.alpha2 vs lib/mongoid.rb in mongoid-4.0.0.beta1
- old
+ new
@@ -18,10 +18,12 @@
require "mongoid/config"
require "mongoid/loggable"
require "mongoid/sessions"
require "mongoid/document"
require "mongoid/log_subscriber"
+require "mongoid/tasks/database"
+require "mongoid/query_cache"
# If we are using Rails then we will include the Mongoid railtie. This has all
# the nifty initializers that Mongoid needs.
if defined?(Rails)
require "mongoid/railtie"
@@ -38,10 +40,10 @@
# Sets the Mongoid configuration options. Best used by passing a block.
#
# @example Set up configuration options.
# Mongoid.configure do |config|
- # config.use(name: "mongoid_test", host: "localhost", port: 27017)
+ # config.connect_to("mongoid_test")
# end
#
# @return [ Config ] The configuration object.
#
# @since 1.0.0