class QueryCacheTest::ShouldNotHaveExceptionsLogger

Attributes

logger[R]

Public Class Methods

new() click to toggle source
Calls superclass method ActiveRecord::Core::new
# File activerecord/test/cases/query_cache_test.rb, line 18
def initialize
  super
  @logger = ::Logger.new File::NULL
  @exception = false
end

Public Instance Methods

exception?() click to toggle source
# File activerecord/test/cases/query_cache_test.rb, line 24
def exception?
  @exception
end
sql(event) click to toggle source
Calls superclass method ActiveRecord::LogSubscriber#sql
# File activerecord/test/cases/query_cache_test.rb, line 28
def sql(event)
  super
rescue
  @exception = true
end