debian-mirror-gitlab/app/controllers/admin/dev_ops_report_controller.rb
2020-11-24 15:15:51 +05:30

13 lines
384 B
Ruby

# frozen_string_literal: true
class Admin::DevOpsReportController < Admin::ApplicationController
include Analytics::UniqueVisitsHelper
track_unique_visits :show, target_id: 'i_analytics_dev_ops_score'
# rubocop: disable CodeReuse/ActiveRecord
def show
@metric = DevOpsReport::Metric.order(:created_at).last&.present
end
# rubocop: enable CodeReuse/ActiveRecord
end