Fix single-record invalid condition on PollVote (#23810)

This commit is contained in:
Matt Jankowski 2023-02-27 03:31:15 -05:00 committed by GitHub
parent d3eefead30
commit 4bb39ac3c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 3 deletions

View file

@ -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