lib/shogun/database.rb in shogun-6.2.3 vs lib/shogun/database.rb in shogun-6.3.0

- old
+ new

@@ -31,14 +31,14 @@ end end def initialize(logger:) @logger = logger - ActiveRecord::LogSubscriber.logger = @logger - ActiveRecord::LogSubscriber.colorize_logging = false ActiveRecord::Base.time_zone_aware_attributes = true ActiveRecord::Base.default_timezone = (timezone || default_timezone).to_sym ActiveRecord::Base.logger = @logger + ActiveRecord::LogSubscriber.logger = @logger + ActiveRecord::LogSubscriber.colorize_logging = false ActiveRecord::Base.establish_connection(uri) end private def url self.class.const_get("URL")