diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-26 15:09:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-26 15:09:50 +0300 |
commit | ae4756174c3c379caeca8da50ade9675e157ae95 (patch) | |
tree | 96efa063ad7ea7363388b84bfc034b4d4cd7b554 /app/models/protected_branch.rb | |
parent | 52fd2a9921bdaa1938143703811f565a7c60a8c4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r-- | app/models/protected_branch.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/protected_branch.rb b/app/models/protected_branch.rb index 96002c8668a..77038d52efe 100644 --- a/app/models/protected_branch.rb +++ b/app/models/protected_branch.rb @@ -68,6 +68,10 @@ class ProtectedBranch < ApplicationRecord def allow_multiple?(type) type == :push end + + def self.downcase_humanized_name + name.underscore.humanize.downcase + end end ProtectedBranch.prepend_mod_with('ProtectedBranch') |