discourse/lib/theme_settings_manager/string.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
253 B
Ruby
Raw Permalink Normal View History

# 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