Adds imageable to legislation proposals

This commit is contained in:
decabeza
2018-10-01 16:48:46 +02:00
parent 1fbb428004
commit 7c194f6042
3 changed files with 21 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ class Legislation::ProposalsController < Legislation::BaseController
params.require(:legislation_proposal).permit(:legislation_process_id, :title,
:question, :summary, :description, :video_url, :tag_list,
:terms_of_service, :geozone_id,
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id])
end