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.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/poll_vote.rb b/app/models/poll_vote.rb
index 57781d616..aec678968 100644
--- a/app/models/poll_vote.rb
+++ b/app/models/poll_vote.rb
@@ -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