diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-04 16:31:06 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-04 16:32:24 +0200 |
commit | b9bba555caa95389e97bd7d32472ddc1e429d7c2 (patch) | |
tree | 2f3dd4d0c803842d8dca4708024395953944ce31 /railties/lib | |
parent | cea3b3cc9d645592945289c116a6e7c7ff9ec489 (diff) | |
download | rails-b9bba555caa95389e97bd7d32472ddc1e429d7c2.tar.gz rails-b9bba555caa95389e97bd7d32472ddc1e429d7c2.tar.bz2 rails-b9bba555caa95389e97bd7d32472ddc1e429d7c2.zip |
Remove defined?(ActiveRecord) and use the railtie hook instead.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/commands/console.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index dfd3c654ff..66dbb5d11e 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -34,10 +34,6 @@ module Rails exit end end - - if defined?(ActiveRecord) - ActiveRecord::Base.logger = Logger.new(STDERR) - end if options[:sandbox] puts "Loading #{Rails.env} environment in sandbox (Rails #{Rails.version})" |