method

call

rails latest stable - Class: ActiveRecord::SQLCounter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

call(name, start, finish, message_id, values)
public

No documentation available.

# File activerecord/lib/active_record/test_case.rb, line 83
    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]

      self.class.log_all << sql
      self.class.log << sql unless ignore =~ sql
    end