Methods
C
N
Attributes
[R] ignore
Class Public methods
new(ignore = self.class.ignored_sql)
# File activerecord/test/cases/helper.rb, line 73
def initialize(ignore = self.class.ignored_sql)
  @ignore   = ignore
end
Instance Public methods
call(name, start, finish, message_id, values)
# File activerecord/test/cases/helper.rb, line 77
def call(name, start, finish, message_id, values)
  sql = values[:sql]

  # FIXME: this seems bad. we should probably have a better way to indicate
  # the query was cached
  return if 'CACHE' == values[:name] || ignore.any? { |x| x =~ sql }
  self.class.log << sql
end