1
0
Fork 0

Ensure data is not nil

Dieser Commit ist enthalten in:
angusmcleod 2021-06-23 17:02:21 +10:00
Ursprung 39ee61b422
Commit 3d9f6aac98

Datei anzeigen

@ -27,7 +27,7 @@ class CustomWizard::Submission
@user = wizard.user
end
data = data.with_indifferent_access
data = (data || {}).with_indifferent_access
@id = data['id'] || SecureRandom.hex(12)
@fields = data.except(META + ['id']) || {}