Skip to content

Commit

Permalink
Merge pull request #3319 from consul/backport-image_attributes
Browse files Browse the repository at this point in the history
Reuse image attributes in legislation processes
  • Loading branch information
javierm committed Feb 20, 2019
2 parents 70a1b7d + af9a217 commit ea0bec3
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 ea0bec3

Please sign in to comment.