Class: GroupMetrics::WeeklyCommentsCount

Inherits:
WeeklyCount
  • Object
show all
Defined in:
app/models/group_metrics/weekly_comments_count.rb

Overview

Tabulate count of Comments within a study week for a Group.

Class Method Summary collapse

Methods inherited from WeeklyCount

#count, #week

Class Method Details

.fetch(group_id) ⇒ Object



7
8
9
10
11
# File 'app/models/group_metrics/weekly_comments_count.rb', line 7

def self.fetch(group_id)
  return {} unless ActiveRecord::Base.connection.table_exists?(table_name)

  super
end