mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 22:53:58 +08:00
14 lines
236 B
Ruby
14 lines
236 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SlugSetting < EnumSiteSetting
|
|
VALUES = %w[ascii encoded none]
|
|
|
|
def self.valid_value?(val)
|
|
VALUES.include?(val)
|
|
end
|
|
|
|
def self.values
|
|
VALUES.map { |l| { name: l, value: l } }
|
|
end
|
|
end
|