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

Class Method Summary collapse

Class Attribute Details

.db_configObject

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

.connectionsObject



67
68
69
# File 'lib/mongo_mapper_ext/db_config.rb', line 67

def connections
  @connections ||= ConnectionsPool.new(self)
end

.databasesObject



71
72
73
# File 'lib/mongo_mapper_ext/db_config.rb', line 71

def databases
  @databases ||= DatabasesPool.new(self)
end