summaryrefslogtreecommitdiff
path: root/app/models/user_type_enums.rb
blob: 795cc4b288930a92f1eedcf8c0d9970f74af3799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module UserTypeEnums
  def self.types
    @types ||= bots.merge(human: nil, ghost: 5)
  end

  def self.bots
    @bots ||= { alert_bot: 2 }.with_indifferent_access
  end
end

UserTypeEnums.prepend_if_ee('EE::UserTypeEnums')