about summary refs log tree commit diff
path: root/app/models/poll_vote.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/poll_vote.rb')
-rw-r--r--app/models/poll_vote.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/poll_vote.rb b/app/models/poll_vote.rb
index ad24eb691..92d74a6db 100644
--- a/app/models/poll_vote.rb
+++ b/app/models/poll_vote.rb
@@ -1,4 +1,5 @@
 # frozen_string_literal: true
+
 # == Schema Information
 #
 # Table name: poll_votes
@@ -22,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