Sha256: ff33000c1bb658fdf76b749ad0b6c3fa4470213903fd325b7e53df21569629ae
Contents?: true
Size: 627 Bytes
Versions: 5
Compression:
Stored size: 627 Bytes
Contents
module DBViewCTI module Model module CTI module SQL extend ActiveSupport::Concern module ClassMethods include DBViewCTI::SQLGeneration::Model # this method is only used in testing. It returns the number of rows present in the real database # table, not the number of rows present in the view (as returned by count) def cti_table_count result = connection.execute("SELECT COUNT(*) FROM #{DBViewCTI::Names.table_name(self)};") result[0]['count'].to_i end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems