mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
17 lines
471 B
Ruby
17 lines
471 B
Ruby
|
module NotificationLevels
|
||
|
def self.all
|
||
|
@all_levels ||= Enum.new(muted: 0,
|
||
|
regular: 1,
|
||
|
tracking: 2,
|
||
|
watching: 3,
|
||
|
watching_first_post: 4)
|
||
|
end
|
||
|
|
||
|
def self.topic_levels
|
||
|
@topic_levels ||= Enum.new(muted: 0,
|
||
|
regular: 1,
|
||
|
tracking: 2,
|
||
|
watching: 3)
|
||
|
end
|
||
|
end
|