2020-11-24 15:15:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Admin::InstanceStatisticsController < Admin::ApplicationController
|
|
|
|
include Analytics::UniqueVisitsHelper
|
|
|
|
|
|
|
|
before_action :check_feature_flag
|
|
|
|
|
|
|
|
track_unique_visits :index, target_id: 'i_analytics_instance_statistics'
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
feature_category :instance_statistics
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
def index
|
|
|
|
end
|
|
|
|
|
|
|
|
def check_feature_flag
|
2021-01-29 00:20:46 +05:30
|
|
|
render_404 unless Feature.enabled?(:instance_statistics, default_enabled: true)
|
2020-11-24 15:15:51 +05:30
|
|
|
end
|
|
|
|
end
|