discourse/app/models/slug_setting.rb

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

18 lines
251 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2015-04-13 22:50:41 +08:00
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-28 09:20:09 +08:00
{ name: l, value: l }
2015-04-13 22:50:41 +08:00
end
end
end