Fix single-record invalid condition on PollVote (#23810)
This commit is contained in:
parent
d3eefead30
commit
4bb39ac3c3
3 changed files with 73 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue