Sha256: 20a49521dae420943d5b304d62b7fb492239f127a96d8eb4d2a084111499ab88
Contents?: true
Size: 459 Bytes
Versions: 6
Compression:
Stored size: 459 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../rails/reload_classes') module CouchPotato def self.rails_init CouchPotato::Config.database_name = YAML::load(File.read(Rails.root.join('config/couchdb.yml')))[Rails.env] end if Rails.version >= '3' class Railtie < Rails::Railtie railtie_name :couch_potato config.after_initialize do |app| CouchPotato.rails_init end end else rails_init end end
Version data entries
6 entries across 6 versions & 1 rubygems