Add SDG::RelatedListSelectorComponent to Polls

Allow to relate SDG and Targets to Polls
This commit is contained in:
taitus
2021-01-21 18:17:47 +01:00
parent 6e0158db17
commit 920631c5b3
3 changed files with 43 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ class Admin::Poll::PollsController < Admin::Poll::BaseController
end
def poll_params
attributes = [:name, :starts_at, :ends_at, :geozone_restricted, :budget_id,
attributes = [:name, :starts_at, :ends_at, :geozone_restricted, :budget_id, :sdg_related_list,
geozone_ids: [], image_attributes: image_attributes]
params.require(:poll).permit(*attributes, *report_attributes, translation_params(Poll))