From 8f9fe92849928bfffa7f5616e61a69454dcb9407 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 2 Nov 2017 10:26:49 +0800 Subject: [PATCH] Add check so that default wizard still works --- lib/wizard_edits.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wizard_edits.rb b/lib/wizard_edits.rb index 065ff901..a716c4ae 100644 --- a/lib/wizard_edits.rb +++ b/lib/wizard_edits.rb @@ -83,6 +83,10 @@ end def required object.required end + + def include_required? + object.respond_to?(:required) + end end ::WizardStepSerializer.class_eval do