discourse/app/models/slug_setting.rb
2015-05-05 18:08:30 +08:00

17 lines
258 B
Ruby

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|
{name: l, value: l}
end
end
end