Remove unused add_question action from admin polls controller

Since commit adf18ee756  this action no longer makes sense.
This commit is contained in:
taitus
2022-09-07 14:25:15 +02:00
parent 5011d4745b
commit 38b6cf36a2
5 changed files with 1 additions and 20 deletions

View File

@@ -42,18 +42,6 @@ class Admin::Poll::PollsController < Admin::Poll::BaseController
end
end
def add_question
question = ::Poll::Question.find(params[:question_id])
if question.present?
@poll.questions << question
notice = t("admin.polls.flash.question_added")
else
notice = t("admin.polls.flash.error_on_question_added")
end
redirect_to admin_poll_path(@poll), notice: notice
end
def booth_assignments
@polls = Poll.current.created_by_admin
end