Sha256: 105c5ee77474e4cf6e73a4c4304ec6c96f6e40d810174304f95c533df9acd40c

Contents?: true

Size: 308 Bytes

Versions: 10

Compression:

Stored size: 308 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
think_feel_do_engine-3.19.9 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.8 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.7 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.6 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.5 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.4 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.3 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.2 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.1 app/models/group_metrics/weekly_goals_count.rb
think_feel_do_engine-3.19.0 app/models/group_metrics/weekly_goals_count.rb