Sha256: ee65b4198a8047c690af2d77aa7b8e06d8382282d4bb3e4ca28ce3383e06d373

Contents?: true

Size: 441 Bytes

Versions: 7

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    module ContentBlocks
      class StatsCell < Decidim::ContentBlocks::ParticipatorySpaceStatsCell
        include ParticipatorySpaceContentBlocksHelper

        private

        def stats
          @stats ||= resource.show_statistics && ParticipatoryProcessStatsPresenter.new(participatory_process: resource).collection
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.28.4 app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb
decidim-participatory_processes-0.28.3 app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb
decidim-participatory_processes-0.28.2 app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb
decidim-participatory_processes-0.28.1 app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb
decidim-participatory_processes-0.28.0 app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb
decidim-participatory_processes-0.28.0.rc5 app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb
decidim-participatory_processes-0.28.0.rc4 app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb