Module: HasConnection

Included in:
ContentType
Defined in:
lib/bottlerocket/has_connection.rb

Instance Method Summary collapse

Instance Method Details

#dbObject



2
3
4
5
# File 'lib/bottlerocket/has_connection.rb', line 2

def db
  @db = Mongo::Connection.new(Configuration.instance.development.database_host,
                              Configuration.instance.development.database_port).db(Configuration.instance.development.database_name)
end