langalex / couch_potato

ruby persistence layer for CouchDB.

This URL has Read+Write access

couch_potato / init.rb
100644 5 lines (3 sloc) 0.184 kb
1
2
3
4
5
# this is for rails only
 
require File.dirname(__FILE__) + '/lib/couch_potato'
 
CouchPotato::Config.database_name = YAML::load(File.read(RAILS_ROOT + '/config/couchdb.yml'))[RAILS_ENV]