Browse Source

Add check so that default wizard still works

Angus McLeod 7 năm trước cách đây
mục cha
commit
8f9fe92849
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      lib/wizard_edits.rb

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