mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
58bf88d7ba
Follow-up to 5176c689e9
21 lines
624 B
Ruby
21 lines
624 B
Ruby
# frozen_string_literal: true
|
|
|
|
module NotificationLevels
|
|
def self.all
|
|
@all_levels ||= Enum.new(muted: 0,
|
|
regular: 1,
|
|
normal: 1, # alias for regular
|
|
tracking: 2,
|
|
watching: 3,
|
|
watching_first_post: 4)
|
|
end
|
|
|
|
def self.topic_levels
|
|
@topic_levels ||= Enum.new(muted: 0,
|
|
regular: 1,
|
|
normal: 1, # alias for regular
|
|
tracking: 2,
|
|
watching: 3)
|
|
end
|
|
end
|