about summary refs log tree commit diff
path: root/app/models/poll.rb
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2021-01-13 13:39:46 -0600
committerStarfall <us@starfall.systems>2021-01-13 13:39:46 -0600
commit65263e6309fb4dea1a93d4b4806af629d317c156 (patch)
tree8a142dea5cc3d4081f551c02e953976d3c0930bf /app/models/poll.rb
parent29227b32e150894e15098bcf216b1f5c08763200 (diff)
parenta7a47834e50645746355e2b9a88244c1804c73cd (diff)
Merge branch 'glitch' into main
Diffstat (limited to 'app/models/poll.rb')
-rw-r--r--app/models/poll.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/models/poll.rb b/app/models/poll.rb
index e1ca55252..d2a17277b 100644
--- a/app/models/poll.rb
+++ b/app/models/poll.rb
@@ -73,10 +73,12 @@ class Poll < ApplicationRecord
     attributes :id, :title, :votes_count, :poll
 
     def initialize(poll, id, title, votes_count)
-      @poll        = poll
-      @id          = id
-      @title       = title
-      @votes_count = votes_count
+      super(
+        poll:        poll,
+        id:          id,
+        title:       title,
+        votes_count: votes_count,
+      )
     end
   end