From a784d4a33e2d9d52c3719136b21ba3a683930083 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 7 Nov 2017 15:40:09 +0800 Subject: [PATCH] Add add_wizard helper --- lib/wizard.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/wizard.rb b/lib/wizard.rb index e0dcb8e8..4ad97024 100644 --- a/lib/wizard.rb +++ b/lib/wizard.rb @@ -136,4 +136,9 @@ class CustomWizard::Wizard [] end end + + def self.add_wizard(json) + wizard = ::JSON.parse(json) + PluginStore.set('custom_wizard', wizard["id"], wizard) + end end