This commit is contained in:
mgabdev
2020-05-01 12:46:31 -04:00
parent bff9abcb89
commit fe9a89d68c
5 changed files with 7 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ class VoteService < BaseService
ApplicationRecord.transaction do
@choices.each do |choice|
@votes << @poll.votes.create!(account: @account, choice: Integer(choice))
@votes << @poll.votes.create!(account: @account, choice: choice)
end
end