removes @question on questions answers

This commit is contained in:
decabeza
2017-10-06 02:38:43 +02:00
parent 3ce98b6cdf
commit 7856915203
2 changed files with 5 additions and 10 deletions

View File

@@ -1,5 +1,4 @@
class Admin::Poll::Questions::AnswersController < Admin::Poll::BaseController
before_action :load_question
before_action :load_answer, only: [:update, :documents]
load_and_authorize_resource :question, class: "::Poll::Question"
@@ -43,7 +42,4 @@ class Admin::Poll::Questions::AnswersController < Admin::Poll::BaseController
@answer = ::Poll::Question::Answer.find(params[:id] || params[:answer_id])
end
def load_question
@question = ::Poll::Question.find(params[:question_id])
end
end