From af9a2179ebcd34d6c203327c0ef68542d40ea9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 15 Feb 2019 19:34:52 +0100 Subject: [PATCH] Reuse image attributes in legislation processes It wasn't originally added because at the time legislation processes didn't have images. --- app/controllers/admin/legislation/processes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/legislation/processes_controller.rb b/app/controllers/admin/legislation/processes_controller.rb index bf02dc7b67e..b470d8c5d37 100644 --- a/app/controllers/admin/legislation/processes_controller.rb +++ b/app/controllers/admin/legislation/processes_controller.rb @@ -1,5 +1,6 @@ class Admin::Legislation::ProcessesController < Admin::Legislation::BaseController include Translatable + include ImageAttributes has_filters %w[open all], only: :index @@ -71,7 +72,7 @@ def allowed_params :font_color, translation_params(::Legislation::Process), documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy], - image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy] + image_attributes: image_attributes ] end