Commit e56aed4c authored by Ash McKenzie's avatar Ash McKenzie

Move UsageStatistics include from EE into FOSS

parent 36c15356
......@@ -7,6 +7,7 @@ class Event < ApplicationRecord
include DeleteWithLimit
include CreatedAtFilterable
include Gitlab::Utils::StrongMemoize
include UsageStatistics
default_scope { reorder(nil) }
......
......@@ -6,8 +6,6 @@ module EE
extend ::Gitlab::Utils::Override
prepended do
include UsageStatistics
scope :issues, -> { where(target_type: 'Issue') }
scope :merge_requests, -> { where(target_type: 'MergeRequest') }
scope :totals_by_author, -> { group(:author_id).count }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment