Remove support for theme_var and theme_color_var fields

These are remnants of the old 'customization' system, and have been superseded by theme settings
This commit is contained in:
David Taylor
2019-01-18 12:03:55 +00:00
parent b520d0efad
commit f40c97c367
3 changed files with 4 additions and 53 deletions

View File

@@ -112,25 +112,6 @@ class RemoteTheme < ActiveRecord::Base
end
end
theme_info["fields"]&.each do |name, info|
unless Hash === info
info = {
"target" => :common,
"type" => :theme_var,
"value" => info
}
end
if info["type"] == "color"
info["type"] = :theme_color_var
end
theme.set_field(target: info["target"] || :common,
name: name,
value: info["value"],
type: info["type"] || :theme_var)
end
Theme.targets.keys.each do |target|
next if target == :settings || target == :translations
ALLOWED_FIELDS.each do |field|