app/controllers/decidim/admin/participatory_processes_controller.rb in decidim-admin-0.0.1.alpha5 vs app/controllers/decidim/admin/participatory_processes_controller.rb in decidim-admin-0.0.1.alpha6
- old
+ new
@@ -61,11 +61,13 @@
@participatory_process = collection.find(params[:id])
authorize @participatory_process
end
def destroy
- @participatory_process = collection.find(params[:id]).destroy!
+ @participatory_process = collection.find(params[:id])
authorize @participatory_process
+
+ @participatory_process.destroy!
flash[:notice] = I18n.t("participatory_processes.destroy.success", scope: "decidim.admin")
redirect_to participatory_processes_path
end