From 843048a86176cbfe4b4f023a0b0debcd740add63 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 10 Oct 2017 12:14:04 +0200 Subject: [PATCH] cleans up --- app/controllers/polls_controller.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/polls_controller.rb b/app/controllers/polls_controller.rb index 6240d4809..7f8fc8e4d 100644 --- a/app/controllers/polls_controller.rb +++ b/app/controllers/polls_controller.rb @@ -1,6 +1,4 @@ class PollsController < ApplicationController - include CommentableActions - include PollsHelper load_and_authorize_resource @@ -17,13 +15,13 @@ class PollsController < ApplicationController def show @questions = @poll.questions.for_render.sort_for_list @token = poll_voter_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| @answers_by_question_id[answer.question_id] = answer.answer end - + @commentable = @poll @comment_tree = CommentTree.new(@commentable, params[:page], @current_order) end