Skip to content

Commit

Permalink
Reuse image attributes in legislation processes
Browse files Browse the repository at this point in the history
It wasn't originally added because at the time legislation processes
didn't have images.
  • Loading branch information
javierm committed Feb 19, 2019
1 parent b330de0 commit af9a217
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/admin/legislation/processes_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class Admin::Legislation::ProcessesController < Admin::Legislation::BaseController
include Translatable
include ImageAttributes

has_filters %w[open all], only: :index

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit af9a217

Please sign in to comment.