mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 07:14:41 +08:00
DEV: support json_schema in theme settings (#12294)
This commit is contained in:
@ -111,6 +111,10 @@ class ThemeSettingsManager
|
||||
def textarea
|
||||
@opts[:textarea]
|
||||
end
|
||||
|
||||
def json_schema
|
||||
JSON.parse(@opts[:json_schema]) rescue false
|
||||
end
|
||||
end
|
||||
|
||||
class Bool < self
|
||||
|
Reference in New Issue
Block a user