Sha256: 810ffb08d16894a93dc75292ab47795521a47c323a0f7692c01d8d86c29692b4

Contents?: true

Size: 700 Bytes

Versions: 9

Compression:

Stored size: 700 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    class ParticipatoryProcessGroupsController < Decidim::ApplicationController
      helper Decidim::SanitizeHelper
      helper_method :participatory_processes, :group, :collection

      before_action :set_group

      def show
        authorize! :read, ParticipatoryProcessGroup
      end

      private

      def participatory_processes
        @participatory_processes ||= group.participatory_processes.published
      end
      alias collection participatory_processes

      def set_group
        @group = Decidim::ParticipatoryProcessGroup.find(params[:id])
      end

      attr_reader :group
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.9.3 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
decidim-participatory_processes-0.9.2 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
decidim-participatory_processes-0.9.1 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
decidim-participatory_processes-0.9.0 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
decidim-participatory_processes-0.8.4 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
decidim-participatory_processes-0.8.3 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
decidim-participatory_processes-0.8.2 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
decidim-participatory_processes-0.8.1 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
decidim-participatory_processes-0.8.0 app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb