Sha256: d88919e068364e442e7e65f998779d79accaab659f0ca2214349becf44974457
Contents?: true
Size: 814 Bytes
Versions: 9
Compression:
Stored size: 814 Bytes
Contents
# frozen_string_literal: true require_dependency "decidim/admin/application_controller" module Decidim module Admin # Controller that allows managing all the Admins. # class ParticipatoryProcessStepOrderingController < ApplicationController include Concerns::ParticipatoryProcessAdmin def create authorize! :reorder, Decidim::ParticipatoryProcessStep ReorderParticipatoryProcessSteps.call(collection, params[:items_ids]) do on(:invalid) do flash.now[:alert] = I18n.t("participatory_process_steps.ordering.error", scope: "decidim.admin") redirect_to participatory_process_path(participatory_process) end end end private def collection participatory_process.steps end end end end
Version data entries
9 entries across 9 versions & 2 rubygems