about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorMatt Jankowski <matt@jankowski.online>2023-02-27 03:31:15 -0500
committerGitHub <noreply@github.com>2023-02-27 09:31:15 +0100
commit4bb39ac3c37fc5319898300c1067bb47443d6041 (patch)
treef020e81bbe49ef0b8f35a1280bc870cda0b59294 /app/models
parentd3eefead3014175b264cb56f6f4cb552cbaaeac6 (diff)
Fix single-record invalid condition on PollVote (#23810)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/poll_vote.rb1
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