Module: MongoMapper
- Defined in:
- lib/mongo_mapper_ext/db_config.rb,
lib/mongo_mapper_ext/plugins/micelaneous.rb,
lib/mongo_mapper_ext/plugins/default_scope.rb,
lib/mongo_mapper_ext/plugins/attributes_cache.rb
Defined Under Namespace
Modules: Migration, Plugins Classes: ConnectionsPool, DatabasesPool
Class Attribute Summary collapse
-
.db_config ⇒ Object
Returns the value of attribute db_config.
Class Method Summary collapse
Class Attribute Details
.db_config ⇒ Object
Returns the value of attribute db_config.
46 47 48 |
# File 'lib/mongo_mapper_ext/db_config.rb', line 46 def db_config @db_config end |
Class Method Details
.connections ⇒ Object
67 68 69 |
# File 'lib/mongo_mapper_ext/db_config.rb', line 67 def connections @connections ||= ConnectionsPool.new(self) end |
.databases ⇒ Object
71 72 73 |
# File 'lib/mongo_mapper_ext/db_config.rb', line 71 def databases @databases ||= DatabasesPool.new(self) end |