DEV: Allow plugins to add theme modifiers via db migrations (#9192)

This commit is contained in:
David Taylor
2020-03-12 16:35:28 +00:00
committed by GitHub
parent 6102c287f7
commit ec2d49d48a
5 changed files with 40 additions and 13 deletions

View File

@ -538,7 +538,7 @@ class Theme < ActiveRecord::Base
end
meta[:modifiers] = {}.tap do |hash|
ThemeModifierSet::MODIFIERS.keys.each do |modifier|
ThemeModifierSet.modifiers.keys.each do |modifier|
value = self.theme_modifier_set.public_send(modifier)
hash[modifier] = value if !value.nil?
end