1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Changed the old logger to new active support logger

This commit is contained in:
Karunakar (Ruby) 2011-12-21 22:40:20 +05:30
parent 9bcd52ffca
commit 730209a679

View file

@ -1,4 +1,4 @@
require 'logger'
require 'active_support/logger'
require_dependency 'models/course'
module ARTest
@ -12,7 +12,7 @@ module ARTest
def self.connect
puts "Using #{connection_name} with Identity Map #{ActiveRecord::IdentityMap.enabled? ? 'on' : 'off'}"
ActiveRecord::Base.logger = Logger.new("debug.log")
ActiveRecord::Base.logger = ActiveSupport::Logger.new("debug.log")
ActiveRecord::Base.configurations = connection_config
ActiveRecord::Base.establish_connection 'arunit'
Course.establish_connection 'arunit2'