discourse/app/models/slug_setting.rb

14 lines
236 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2015-04-13 09:50:41 -05:00
class SlugSetting < EnumSiteSetting
VALUES = %w[ascii encoded none]
2015-04-13 09:50:41 -05:00
def self.valid_value?(val)
VALUES.include?(val)
end
def self.values
VALUES.map { |l| { name: l, value: l } }
2015-04-13 09:50:41 -05:00
end
end