Fix single-record invalid condition on PollVote (#23810)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user