Skip to content

Commit

Permalink
Put establish_connection back in...
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@14 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Nov 25, 2004
1 parent 55f2fcf commit 7ed0894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions railties/environments/shared.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@


# 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}"

Expand All @@ -52,5 +53,4 @@
klass.template_root ||= "#{RAILS_ROOT}/app/views/"
end


# Include your app's configuration here:
3 changes: 2 additions & 1 deletion railties/environments/shared_for_gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@


# 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}"

Expand Down

0 comments on commit 7ed0894

Please sign in to comment.