Navigation Menu

Skip to content

Commit

Permalink
Remebered to take out my temp crap
Browse files Browse the repository at this point in the history
  • Loading branch information
cherring committed Jun 7, 2009
1 parent 43667a9 commit b0cfeae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/connection_ninja.rb
Expand Up @@ -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))
Expand Down

0 comments on commit b0cfeae

Please sign in to comment.