Reuse image attributes in legislation processes

It wasn't originally added because at the time legislation processes
didn't have images.
This commit is contained in:
Javi Martín
2019-02-15 19:34:52 +01:00
parent b330de01f6
commit af9a2179eb

View File

@@ -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 @@ class Admin::Legislation::ProcessesController < Admin::Legislation::BaseControll
: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