debian-mirror-gitlab/app/controllers/admin/instance_statistics_controller.rb

19 lines
432 B
Ruby
Raw Normal View History

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-02-22 17:27:13 +05:30
feature_category :devops_reports
2021-01-03 14:25:43 +05:30
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