From 01315f269540dee7908d68aa199f06bee30cd27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 15 Oct 2018 17:26:09 +0200 Subject: [PATCH] Fix rubocop line too long warning --- app/controllers/admin/poll/questions/answers_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/poll/questions/answers_controller.rb b/app/controllers/admin/poll/questions/answers_controller.rb index 099fc818b..d8b564ca3 100644 --- a/app/controllers/admin/poll/questions/answers_controller.rb +++ b/app/controllers/admin/poll/questions/answers_controller.rb @@ -52,7 +52,10 @@ class Admin::Poll::Questions::AnswersController < Admin::Poll::BaseController def answer_params documents_attributes = [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy] attributes = [:question_id, documents_attributes: documents_attributes] - params.require(:poll_question_answer).permit(*attributes, translation_params(Poll::Question::Answer)) + + params.require(:poll_question_answer).permit( + *attributes, translation_params(Poll::Question::Answer) + ) end def load_answer