Use option instead of answer text to find multiple answers

This commit is contained in:
taitus
2025-09-29 17:14:37 +02:00
parent b4b00487cc
commit 62e1c13e7e
2 changed files with 65 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ class Poll::Question < ApplicationRecord
when "unique", nil
{ author: user }
when "multiple"
{ author: user, answer: option.title }
{ author: user, option: option }
end
end
end