app/controllers/decidim/admin/participatory_processes_controller.rb in decidim-admin-0.4.4 vs app/controllers/decidim/admin/participatory_processes_controller.rb in decidim-admin-0.5.0
- old
+ new
@@ -3,11 +3,10 @@
module Decidim
module Admin
# Controller that allows managing participatory processes.
#
class ParticipatoryProcessesController < Decidim::Admin::ApplicationController
- helper Decidim::OrganizationScopesHelper
helper_method :current_participatory_process
def index
authorize! :index, Decidim::ParticipatoryProcess
@participatory_processes = collection
@@ -54,13 +53,9 @@
on(:invalid) do
flash.now[:alert] = I18n.t("participatory_processes.update.error", scope: "decidim.admin")
render :edit, layout: "decidim/admin/participatory_process"
end
end
- end
-
- def show
- authorize! :read, current_participatory_process
end
def destroy
authorize! :destroy, current_participatory_process
current_participatory_process.destroy!