Sha256: dbfc929039e1e9b899989dff7c91e4e2ac114211f75587904ff690bc45e19d32
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 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 defined?(::Rails::Railtie) class Railtie < ::Rails::Railtie config.after_initialize do |app| CouchPotato.rails_init end end else rails_init end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
couch_potato-0.3.0 | lib/couch_potato/railtie.rb |
couch_potato-0.2.32 | lib/couch_potato/railtie.rb |
couch_potato-0.2.31 | lib/couch_potato/railtie.rb |