2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-17 18:04:11 +08:00
discourse/lib/notification_levels.rb
2023-01-09 12:10:19 +00:00

26 lines
473 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