This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/models/slug_setting.rb
2023-01-09 14:14:59 +00:00

14 lines
236 B
Ruby

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