Sha256: a360c0e243f7ad69e5b93a8e65638ef478643fb34234086f978efb2c5942ca55
Contents?: true
Size: 397 Bytes
Versions: 5
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true module Decidim module ContentBlocks class MetricsCell < Decidim::ViewModel delegate :current_organization, to: :controller def show return unless current_organization.show_statistics? render end def metrics @metrics ||= MetricChartsPresenter.new(organization: current_organization) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems