discourse/lib/notification_levels.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
502 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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