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

16 lines
420 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
class Admin::DevOpsReportController < Admin::ApplicationController
include Analytics::UniqueVisitsHelper
track_unique_visits :show, target_id: 'i_analytics_dev_ops_score'
2021-01-03 14:25:43 +05:30
feature_category :devops_reports
2020-11-24 15:15:51 +05:30
# rubocop: disable CodeReuse/ActiveRecord
def show
@metric = DevOpsReport::Metric.order(:created_at).last&.present
end
# rubocop: enable CodeReuse/ActiveRecord
end