Added results_enabled and stats_enabled to Poll admin form

This commit is contained in:
María Checa
2017-10-20 18:45:34 +02:00
parent 9fc35e9087
commit 62b1998ec6
3 changed files with 21 additions and 3 deletions

View File

@@ -54,9 +54,10 @@ class Admin::Poll::PollsController < Admin::Poll::BaseController
end
def poll_params
params.require(:poll).permit(:name, :starts_at, :ends_at, :geozone_restricted, :summary, :description,
geozone_ids: [],
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy])
params.require(:poll).permit(:name, :starts_at, :ends_at, :geozone_restricted,
:summary, :description, :results_enabled,:stats_enabled,
geozone_ids: [],
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy])
end
def search_params