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:
parent
9bcd52ffca
commit
730209a679
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue