Skip to content
Browse files

Fix #5847 and #4045 on master.

  • Loading branch information...
1 parent cc7dd66 commit c0ba0f01d05844bf3024d3926900706b270adf4d @kennyj committed May 29, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/railtie.rb
View
2 activerecord/lib/active_record/railtie.rb
@@ -30,6 +30,7 @@ class Railtie < Rails::Railtie
)
rake_tasks do
+ require "active_record/base"
load "active_record/railties/databases.rake"
end
@@ -38,6 +39,7 @@ class Railtie < Rails::Railtie
# first time. Also, make it output to STDERR.
console do |app|
require "active_record/railties/console_sandbox" if app.sandbox?
+ require "active_record/base"
console = ActiveSupport::Logger.new(STDERR)
Rails.logger.extend ActiveSupport::Logger.broadcast console
end

0 comments on commit c0ba0f0

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