From 848874ea1feff72dfd51a2e7faecb13282832f5f Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Fri, 30 Apr 2021 21:56:00 +0530 Subject: [PATCH] FIX: clicking Maybe Later was causing 500 error (#105) --- controllers/custom_wizard/wizard.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/custom_wizard/wizard.rb b/controllers/custom_wizard/wizard.rb index 73c1f592..37728ecb 100644 --- a/controllers/custom_wizard/wizard.rb +++ b/controllers/custom_wizard/wizard.rb @@ -11,7 +11,9 @@ class CustomWizard::WizardController < ::ApplicationController helper_method :wizard_theme_translations_lookup def wizard - CustomWizard::Wizard.create(params[:wizard_id].underscore, current_user) + @builder = CustomWizard::Builder.new(params[:wizard_id].underscore, current_user) + @wizard ||= @builder.build + @wizard end def wizard_page_title