diff --git a/app/models/log.rb b/app/models/log.rb index 0f7d20a7a..acbd6962e 100644 --- a/app/models/log.rb +++ b/app/models/log.rb @@ -108,7 +108,7 @@ class Log < ApplicationRecord question = form.questions.find { |q| q.id == error.attribute.to_s } if question.type == "checkbox" - question.answer_keys_without_dividers { |attribute| public_send("#{attribute}=", nil) } + question.answer_keys_without_dividers.each { |attribute| public_send("#{attribute}=", nil) } else public_send("#{error.attribute}=", nil) end