2018-07-18 00:37:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-08-21 18:10:24 +00:00
|
|
|
class Admin::DevOpsScoreController < Admin::ApplicationController
|
2020-06-22 15:09:27 +00:00
|
|
|
include Analytics::UniqueVisitsHelper
|
|
|
|
|
2020-08-21 18:10:24 +00:00
|
|
|
track_unique_visits :show, target_id: 'i_analytics_dev_ops_score'
|
2020-06-22 15:09:27 +00:00
|
|
|
|
2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
2020-08-21 18:10:24 +00:00
|
|
|
def show
|
2019-12-03 09:09:09 +00:00
|
|
|
@metric = DevOpsScore::Metric.order(:created_at).last&.present
|
2018-07-18 00:37:58 +00:00
|
|
|
end
|
2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: enable CodeReuse/ActiveRecord
|
2018-07-18 00:37:58 +00:00
|
|
|
end
|