Sha256: cbef1632c8868ce29db97b5e645bd497c31f0d11d56f5ee31fc5a8c4d04661cc
Contents?: true
Size: 970 Bytes
Versions: 3
Compression:
Stored size: 970 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses class ParticipatoryProcessGroupsController < Decidim::ParticipatoryProcesses::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 ||= if current_user group.participatory_processes.visible_for(current_user.id).published else group.participatory_processes.published end end alias collection participatory_processes def set_group @group = Decidim::ParticipatoryProcessGroup.find(params[:id]) end attr_reader :group end end end
Version data entries
3 entries across 3 versions & 1 rubygems