DEV: support json_schema in theme settings (#12294)

This commit is contained in:
Penar Musaraj
2021-03-10 20:15:04 -05:00
committed by GitHub
parent 9fb9a2c098
commit 10780d2448
13 changed files with 171 additions and 4 deletions

View File

@ -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