debian-mirror-gitlab/app/models/user_type_enums.rb
2020-04-22 19:07:51 +05:30

14 lines
271 B
Ruby

# frozen_string_literal: true
module UserTypeEnums
def self.types
@types ||= bots.merge(human: nil, ghost: 5)
end
def self.bots
@bots ||= { alert_bot: 2, project_bot: 6 }.with_indifferent_access
end
end
UserTypeEnums.prepend_if_ee('EE::UserTypeEnums')