Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-01 03:09:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-01 03:09:45 +0300
commit53758cb2cae0e3c2be30d166a4734701d05d0935 (patch)
treec57a7c598457ce7d60949eb0f73e7f37360f7b3e /app/models/prometheus_metric.rb
parent8bb9ee876910bf5a14e116ace9ec95791486a78a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/prometheus_metric.rb')
-rw-r--r--app/models/prometheus_metric.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/prometheus_metric.rb b/app/models/prometheus_metric.rb
index ea5e11c7a05..bfd23d2a334 100644
--- a/app/models/prometheus_metric.rb
+++ b/app/models/prometheus_metric.rb
@@ -4,7 +4,7 @@ class PrometheusMetric < ApplicationRecord
belongs_to :project, validate: true, inverse_of: :prometheus_metrics
has_many :prometheus_alerts, inverse_of: :prometheus_metric
- enum group: Enums::PrometheusMetric.groups
+ enum group: PrometheusMetricEnums.groups
validates :title, presence: true
validates :query, presence: true
@@ -72,6 +72,6 @@ class PrometheusMetric < ApplicationRecord
private
def group_details(group)
- Enums::PrometheusMetric.group_details.fetch(group.to_sym)
+ PrometheusMetricEnums.group_details.fetch(group.to_sym)
end
end