mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 03:01:14 +08:00
13 lines
229 B
Ruby
Vendored
13 lines
229 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class ThemeSettingsManager::String < ThemeSettingsManager
|
|
def textarea
|
|
@opts[:textarea]
|
|
end
|
|
|
|
def json_schema
|
|
JSON.parse(@opts[:json_schema])
|
|
rescue StandardError
|
|
false
|
|
end
|
|
end
|