Ensure data is not nil
Dieser Commit ist enthalten in:
Ursprung
39ee61b422
Commit
3d9f6aac98
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -27,7 +27,7 @@ class CustomWizard::Submission
|
||||||
@user = wizard.user
|
@user = wizard.user
|
||||||
end
|
end
|
||||||
|
|
||||||
data = data.with_indifferent_access
|
data = (data || {}).with_indifferent_access
|
||||||
@id = data['id'] || SecureRandom.hex(12)
|
@id = data['id'] || SecureRandom.hex(12)
|
||||||
@fields = data.except(META + ['id']) || {}
|
@fields = data.except(META + ['id']) || {}
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren