0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 01:10:28 +01:00

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']) || {}