2020-04-08 14:13:33 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module UserTypeEnums
|
|
|
|
def self.types
|
2020-04-22 19:07:51 +05:30
|
|
|
@types ||= bots.merge(human: nil, ghost: 5)
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def self.bots
|
2020-04-22 19:07:51 +05:30
|
|
|
@bots ||= { alert_bot: 2, project_bot: 6 }.with_indifferent_access
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
UserTypeEnums.prepend_if_ee('EE::UserTypeEnums')
|