Sha256: cdaf413f70d3a2bc5570abd1a869c9482f4670d4f1ab3ae0986e67e26d38a55c

Contents?: true

Size: 338 Bytes

Versions: 13

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true
module GroupMetrics
  # Tabulate count of Goals within a study week for a Group.
  class WeeklyGoalsCount < WeeklyCount
    self.table_name = "social_networking_goals"

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

      super
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.22.8 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.22.7 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.22.6 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.22.5 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.22.4 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.22.2 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.22.1 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.22.0 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.21.2 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.21.1 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.21.0 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.20.1 app/models/group_metrics/weekly_goals_count.rb