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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user