diff --git a/lib/builder.rb b/lib/builder.rb index 49a3e62c..669ad233 100644 --- a/lib/builder.rb +++ b/lib/builder.rb @@ -35,8 +35,7 @@ class CustomWizard::Builder end def build - unless (@wizard.completed? && !@wizard.respond_to?(:multiple_submissions)) || - !@steps + unless (@wizard.completed? && !@wizard.multiple_submissions) || !@steps @steps.each do |s| @wizard.append_step(s['id']) do |step| step.title = s['title'] if s['title'] diff --git a/lib/wizard_edits.rb b/lib/wizard_edits.rb index d9b8b58b..eb7b51ed 100644 --- a/lib/wizard_edits.rb +++ b/lib/wizard_edits.rb @@ -71,7 +71,7 @@ end end def include_completed? - object.completed? && !object.respond_to?(:multiple_submissions) && !scope.current_user.admin? + object.completed? && !object.multiple_submissions && !scope.current_user.admin? end def include_start?