discourse/app/models/slug_setting.rb

18 lines
260 B
Ruby
Raw Normal View History

2015-04-13 09:50:41 -05:00
require_dependency 'enum_site_setting'
class SlugSetting < EnumSiteSetting
VALUES = %w(ascii encoded none)
def self.valid_value?(val)
VALUES.include?(val)
end
def self.values
VALUES.map do |l|
2017-07-27 20:20:09 -05:00
{ name: l, value: l }
2015-04-13 09:50:41 -05:00
end
end
end