diff options
author | Matt Jankowski <matt@jankowski.online> | 2023-02-27 03:31:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 09:31:15 +0100 |
commit | 4bb39ac3c37fc5319898300c1067bb47443d6041 (patch) | |
tree | f020e81bbe49ef0b8f35a1280bc870cda0b59294 /app/models | |
parent | d3eefead3014175b264cb56f6f4cb552cbaaeac6 (diff) |
Fix single-record invalid condition on PollVote (#23810)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/poll_vote.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/poll_vote.rb b/app/models/poll_vote.rb index 00eaedd12..92d74a6db 100644 --- a/app/models/poll_vote.rb +++ b/app/models/poll_vote.rb @@ -23,6 +23,7 @@ class PollVote < ApplicationRecord after_create_commit :increment_counter_cache delegate :local?, to: :account + delegate :multiple?, :expired?, to: :poll, prefix: true def object_type :vote |