Added token to poll voters

This commit is contained in:
María Checa
2017-10-06 18:43:00 +02:00
parent 6994f6d7fe
commit 35148015b9
6 changed files with 16 additions and 12 deletions

View File

@@ -14,7 +14,6 @@ class PollsController < ApplicationController
def show
@questions = @poll.questions.for_render.sort_for_list
@token = poll_answer_author_token(@poll, current_user)
@answers_by_question_id = {}
poll_answers = ::Poll::Answer.by_question(@poll.question_ids).by_author(current_user.try(:id))
poll_answers.each do |answer|