diff --git a/app/controllers/admin/poll/polls_controller.rb b/app/controllers/admin/poll/polls_controller.rb index e42db27db..68ba02a01 100644 --- a/app/controllers/admin/poll/polls_controller.rb +++ b/app/controllers/admin/poll/polls_controller.rb @@ -72,8 +72,4 @@ class Admin::Poll::PollsController < Admin::Poll::BaseController [*attributes, *report_attributes, translation_params(Poll)] end - - def resource - @poll ||= Poll.find(params[:id]) - end end diff --git a/app/controllers/admin/poll/questions/answers_controller.rb b/app/controllers/admin/poll/questions/answers_controller.rb index 6d6b8a759..c015f1ebe 100644 --- a/app/controllers/admin/poll/questions/answers_controller.rb +++ b/app/controllers/admin/poll/questions/answers_controller.rb @@ -46,9 +46,4 @@ class Admin::Poll::Questions::AnswersController < Admin::Poll::BaseController [*attributes, translation_params(Poll::Question::Answer)] end - - def resource - load_answer unless @answer - @answer - end end diff --git a/app/controllers/admin/poll/questions_controller.rb b/app/controllers/admin/poll/questions_controller.rb index 0bef8fb0b..598e664e7 100644 --- a/app/controllers/admin/poll/questions_controller.rb +++ b/app/controllers/admin/poll/questions_controller.rb @@ -62,8 +62,4 @@ class Admin::Poll::QuestionsController < Admin::Poll::BaseController def search_params params.permit(:poll_id, :search) end - - def resource - @poll_question ||= Poll::Question.find(params[:id]) - end end