diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 07:33:21 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 07:33:21 +0000 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /app/models/label.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) | |
download | gitlab-ce-36a59d088eca61b834191dacea009677a96c052f.tar.gz |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'app/models/label.rb')
-rw-r--r-- | app/models/label.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/label.rb b/app/models/label.rb index 4c9f071f43a..7f4556c11c9 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -160,11 +160,6 @@ class Label < ApplicationRecord on_project_boards(project_id).where(id: label_id).exists? end - # Generate a hex color based on hex-encoded value - def self.color_for(value) - "##{Digest::MD5.hexdigest(value)[0..5]}" - end - def open_issues_count(user = nil) issues_count(user, state: 'opened') end |