Allow admin set published_proposal field
This commit is contained in:
@@ -25,7 +25,7 @@ class Admin::Dashboard::ActionsController < Admin::Dashboard::BaseController
|
||||
end
|
||||
|
||||
def edit; end
|
||||
|
||||
|
||||
def update
|
||||
if dashboard_action.update(dashboard_action_params)
|
||||
redirect_to admin_dashboard_actions_path
|
||||
@@ -54,10 +54,10 @@ class Admin::Dashboard::ActionsController < Admin::Dashboard::BaseController
|
||||
params
|
||||
.require(:dashboard_action)
|
||||
.permit(
|
||||
:title, :description, :short_description, :request_to_administrators, :day_offset,
|
||||
:required_supports, :order, :active, :action_type,
|
||||
:title, :description, :short_description, :request_to_administrators, :day_offset,
|
||||
:required_supports, :order, :active, :action_type, :published_proposal,
|
||||
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
|
||||
links_attributes: [:id, :label, :url, :open_in_new_tab, :_destroy]
|
||||
links_attributes: [:id, :label, :url, :open_in_new_tab, :_destroy]
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user