Kaynağa Gözat

Add add_wizard helper

Angus McLeod 7 yıl önce
ebeveyn
işleme
a784d4a33e
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      lib/wizard.rb

+ 5 - 0
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