Store remote votes URI (#10158)
* Store remote votes URI * Add spec for accepting remote votes * Make poll vote id generation work the same way as follows
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
# choice :integer default(0), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# uri :string
|
||||
#
|
||||
|
||||
class PollVote < ApplicationRecord
|
||||
@ -20,6 +21,8 @@ class PollVote < ApplicationRecord
|
||||
|
||||
after_create_commit :increment_counter_cache
|
||||
|
||||
delegate :local?, to: :account
|
||||
|
||||
private
|
||||
|
||||
def increment_counter_cache
|
||||
|
Reference in New Issue
Block a user