Commit 57ff9631 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Remove unnecessary prometheus_service method, that is now handled by new...

Remove unnecessary prometheus_service method, that is now handled by new automagic within Project model
parent 13902e40
...@@ -798,10 +798,6 @@ class Project < ActiveRecord::Base ...@@ -798,10 +798,6 @@ class Project < ActiveRecord::Base
@monitoring_service ||= monitoring_services.reorder(nil).find_by(active: true) @monitoring_service ||= monitoring_services.reorder(nil).find_by(active: true)
end end
def prometheus_service
@prometheus_service ||= monitoring_services.find_by(active: true, type: PrometheusService.name)
end
def jira_tracker? def jira_tracker?
issues_tracker.to_param == 'jira' issues_tracker.to_param == 'jira'
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment