Sha256: e4c4999399528893a1f314e8491f1a16ad87a968638ecbeb84b014aa17912d4a
Contents?: true
Size: 713 Bytes
Versions: 13
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses # A presenter to render statistics in a Participatory Process Group class ParticipatoryProcessGroupStatsPresenter < Decidim::StatsPresenter include Decidim::IconHelper private def participatory_space = __getobj__.fetch(:participatory_process_group) def participatory_space_sym = :participatory_process_group def participatory_processes @participatory_processes ||= participatory_space.participatory_processes end def published_components @published_components ||= Component.where(participatory_space: participatory_processes).published end end end end
Version data entries
13 entries across 13 versions & 1 rubygems