diff options
Diffstat (limited to 'app/models/product_analytics_event.rb')
-rw-r--r-- | app/models/product_analytics_event.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/product_analytics_event.rb b/app/models/product_analytics_event.rb index d2026d3b333..52baa3be6c4 100644 --- a/app/models/product_analytics_event.rb +++ b/app/models/product_analytics_event.rb @@ -20,8 +20,6 @@ class ProductAnalyticsEvent < ApplicationRecord where('collector_tstamp BETWEEN ? AND ? ', today - duration + 1, today + 1) } - scope :by_category_and_action, ->(category, action) { where(se_category: category, se_action: action) } - def self.count_by_graph(graph, days) group(graph).timerange(days).count end |