diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-11-25 22:34:24 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-11-25 22:34:24 +0000 |
commit | 7ed0894c37a0222eaaa256cc9be19647c108e432 (patch) | |
tree | f5f3496b988534553b4fd2c036d2844c5b52cac6 /railties/environments/shared_for_gem.rb | |
parent | 55f2fcff1dc623f85fc14c7e916a02d3731da71d (diff) | |
download | rails-7ed0894c37a0222eaaa256cc9be19647c108e432.tar.gz rails-7ed0894c37a0222eaaa256cc9be19647c108e432.tar.bz2 rails-7ed0894c37a0222eaaa256cc9be19647c108e432.zip |
Put establish_connection back in...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@14 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments/shared_for_gem.rb')
-rw-r--r-- | railties/environments/shared_for_gem.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/environments/shared_for_gem.rb b/railties/environments/shared_for_gem.rb index 52f618563c..dde6a01db7 100644 --- a/railties/environments/shared_for_gem.rb +++ b/railties/environments/shared_for_gem.rb @@ -33,8 +33,9 @@ require_gem 'rails' # Environment-specific configuration. -require 'yaml' ActiveRecord::Base.configurations = YAML::load(File.open("#{RAILS_ROOT}/config/database.yml")) +ActiveRecord::Base.establish_connection + ActionController::Base.require_or_load 'abstract_application' ActionController::Base.require_or_load "environments/#{RAILS_ENV}" |