mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 10:05:24 +08:00
16 lines
253 B
Ruby
16 lines
253 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class ThemeSettingsManager::String < ThemeSettingsManager
|
||
|
def textarea
|
||
|
@opts[:textarea]
|
||
|
end
|
||
|
|
||
|
def json_schema
|
||
|
begin
|
||
|
JSON.parse(@opts[:json_schema])
|
||
|
rescue StandardError
|
||
|
false
|
||
|
end
|
||
|
end
|
||
|
end
|