Sha256: c37be54b2cca62ff456ba59b92168c49f66ea12e52da62b22c634af4c301fa0a
Contents?: true
Size: 504 Bytes
Versions: 7
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true module Decidim module ContentBlocks class StatsCell < Decidim::ViewModel def stats @stats ||= HomeStatsPresenter.new(organization: current_organization) end private def cache_hash hash = [] hash.push(I18n.locale) hash.push(current_organization.cache_key) hash.join(Decidim.cache_key_separator) end def cache_expiry_time Decidim.stats_cache_expiry_time end end end end
Version data entries
7 entries across 7 versions & 1 rubygems