Explorar el Código

Stop reduce returning nil

Angus McLeod hace 6 años
padre
commit
a295f6fe20
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      lib/wizard.rb

+ 1 - 0
lib/wizard.rb

@@ -132,6 +132,7 @@ class CustomWizard::Wizard
         name = data['name']
         wizard = CustomWizard::Wizard.new(user, id: id, name: name)
         result.push(id: id, name: name) if !wizard.completed?
+        result
       end
     else
       false