Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
8 lines (8 sloc) 345 Bytes
if ENV['MONGOHQ_URL']
uri = URI.parse(ENV['MONGOHQ_URL'])
MongoMapper.connection = Mongo::Connection.from_uri(ENV['MONGOHQ_URL'], :logger => logger)
MongoMapper.database = uri.path.gsub(/^\//, '')
else
MongoMapper.connection = Mongo::Connection.new('localhost', nil, :logger => logger)
MongoMapper.database = "fikus_#{Padrino.env}"
end
You can’t perform that action at this time.