2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-04-13 10:50:41 -04: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-27 21:20:09 -04:00
|
|
|
{ name: l, value: l }
|
2015-04-13 10:50:41 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|