blob: 7fd0905ee818d4e41109b006864d9f0af6680c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module ProtectedBranchAccess
extend ActiveSupport::Concern
included do
scope :master, -> { where(access_level: Gitlab::Access::MASTER) }
scope :developer, -> { where(access_level: Gitlab::Access::DEVELOPER) }
end
def humanize
self.class.human_access_levels[self.access_level]
end
end
|