removes @question on questions answers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user