From b0cfeae78610bd888e5b14da77b390fb16761057 Mon Sep 17 00:00:00 2001 From: Chris Herring Date: Sun, 7 Jun 2009 15:48:43 +1000 Subject: [PATCH] Remebered to take out my temp crap --- lib/connection_ninja.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/connection_ninja.rb b/lib/connection_ninja.rb index 03c38fd..3c826c4 100644 --- a/lib/connection_ninja.rb +++ b/lib/connection_ninja.rb @@ -6,14 +6,14 @@ def self.included(base) module ClassMethods #These are just here to use to run my specs, will work out how to fake these later - RAILS_ENV = "development" - RAILS_ROOT = File.dirname(__FILE__) + "/.." - ActiveRecord::Base.configurations = { 'alternate_development' => { - 'adapter' => 'postgresql', - 'database' => 'connection_ninja_alternate', - 'host' => 'localhost' - } - } + # RAILS_ENV = "development" + # RAILS_ROOT = File.dirname(__FILE__) + "/.." + # ActiveRecord::Base.configurations = { 'alternate_development' => { + # 'adapter' => 'postgresql', + # 'database' => 'connection_ninja_alternate', + # 'host' => 'localhost' + # } + # } def use_connection_ninja(config_name) connect_to_db(config(config_name))