summaryrefslogtreecommitdiff
path: root/app/models/protected_branch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r--app/models/protected_branch.rb4
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')