From e2aa55b4b24d61720e26f932cedabd617cdb5664 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Sun, 17 Dec 2017 12:04:31 +0800 Subject: [PATCH] Bugfix theme admin --- lib/template.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/template.rb b/lib/template.rb index 86fadaa5..c9308dab 100644 --- a/lib/template.rb +++ b/lib/template.rb @@ -11,7 +11,8 @@ class CustomWizard::Template :after_signup, :after_time, :after_time_scheduled, - :required + :required, + :theme_key def initialize(data) data = data.is_a?(String) ? ::JSON.parse(data) : data @@ -27,5 +28,6 @@ class CustomWizard::Template @after_time = data['after_time'] @after_time_scheduled = data['after_time_scheduled'] @required = data['required'] || false + @theme_key = data['theme_key'] end end