Use option instead of answer text to find multiple answers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user