mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to app/*
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SlugSetting < EnumSiteSetting
|
||||
|
||||
VALUES = %w(ascii encoded none)
|
||||
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
|
||||
VALUES.map { |l| { name: l, value: l } }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user