FIX: do not strip nil string

This commit is contained in:
Arpit Jalan 2019-11-13 16:58:14 +05:30
parent b27e009655
commit 5ff84be8cc
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ after_initialize do
PollOption.create!(
poll: created_poll,
digest: option["id"].presence,
html: option["html"].presence.strip
html: option["html"].presence&.strip
)
end
end