Module: MongoMapper
- Defined in:
- lib/mongo_mapper_ext/mongo_mapper/plugins/db_config.rb
Defined Under Namespace
Modules: Migration
Classes: ConnectionsPool, DatabasesPool
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.db_config ⇒ Object
Returns the value of attribute db_config.
45
46
47
|
# File 'lib/mongo_mapper_ext/mongo_mapper/plugins/db_config.rb', line 45
def db_config
@db_config
end
|
Class Method Details
.connections ⇒ Object
51
52
53
|
# File 'lib/mongo_mapper_ext/mongo_mapper/plugins/db_config.rb', line 51
def connections
@connections ||= ConnectionsPool.new
end
|
.databases ⇒ Object
55
56
57
|
# File 'lib/mongo_mapper_ext/mongo_mapper/plugins/db_config.rb', line 55
def databases
@databases ||= DatabasesPool.new
end
|
.use_database(database_alias) ⇒ Object