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

Version Path
decidim-participatory_processes-0.29.1 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.28.4 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.29.0 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.28.3 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.29.0.rc4 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.29.0.rc3 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.29.0.rc2 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.29.0.rc1 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.28.2 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.28.1 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.28.0 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.28.0.rc5 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
decidim-participatory_processes-0.28.0.rc4 app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb