Class: Mongoid::Config::Database
- Defined in:
- lib/mongoid/config/database.rb
Overview
This class handles the configuration and initialization of a mongodb database from options.
Instance Method Summary collapse
-
#configure ⇒ Array<Mongo::DB, Array<Mongo:DB>>
Configure the database connections.
-
#initialize(options = {}) ⇒ Database
constructor
Create the new db configuration class.
Methods included from Extensions::Hash::Scoping
Methods included from Extensions::Hash::CriteriaHelpers
#expand_complex_criteria, #extract_id
Methods included from Extensions::Hash::DeepCopy
Constructor Details
#initialize(options = {}) ⇒ Database
Create the new db configuration class.
39 40 41 |
# File 'lib/mongoid/config/database.rb', line 39 def initialize( = {}) merge!() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object (private)
Convenience for accessing the hash via dot notation.
129 130 131 |
# File 'lib/mongoid/config/database.rb', line 129 def method_missing(name, *args, &block) self[name.to_s] end |