Sha256: 53afbe6654cf316c962d50f19d7b43cf6cefbf8d7efac24a52ba9b4ff082823f
Contents?: true
Size: 565 Bytes
Versions: 31
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module Decidim module Votings module ContentBlocks module LandingPage class StatisticsCell < Decidim::StatisticsCell def show content_tag(:div, super, class: "section") end private def stats @stats ||= begin voting = Decidim::Votings::Voting.find_by(id: model.scoped_resource_id) Decidim::Votings::VotingStatsPresenter.new(voting: voting).collection end end end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems