From 57ff963129a37b27f3944f0ec2d0212da9b23e84 Mon Sep 17 00:00:00 2001 From: Pawel Chojnacki <pawel@chojnacki.ws> Date: Tue, 20 Jun 2017 01:03:55 +0200 Subject: [PATCH] Remove unnecessary prometheus_service method, that is now handled by new automagic within Project model --- app/models/project.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index f6338b92b9f..4c394646787 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -798,10 +798,6 @@ class Project < ActiveRecord::Base @monitoring_service ||= monitoring_services.reorder(nil).find_by(active: true) end - def prometheus_service - @prometheus_service ||= monitoring_services.find_by(active: true, type: PrometheusService.name) - end - def jira_tracker? issues_tracker.to_param == 'jira' end -- 2.30.9