Skip to content
Browse files

Fix AR's rake tasks to work with the Rails::Application refactor

  • Loading branch information...
1 parent abad097 commit 64f8c87b1dab9bc9b6324fd6a3d77945f4b62821 Carlhuda committed Jan 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railties/databases.rake
View
2 activerecord/lib/active_record/railties/databases.rake
@@ -1,7 +1,7 @@
namespace :db do
task :load_config => :rails_env do
require 'active_record'
- ActiveRecord::Base.configurations = Rails::Configuration.new.database_configuration
+ ActiveRecord::Base.configurations = Rails::Application.config.database_configuration
end
namespace :create do

0 comments on commit 64f8c87

Please sign in to comment.
Something went wrong with that request. Please try again.