Sha256: c7724fd06598cfa3b2f29fe56de32cff273fef547df8daeb34954bf3b8baddfe
Contents?: true
Size: 877 Bytes
Versions: 11
Compression:
Stored size: 877 Bytes
Contents
# frozen_string_literal: true module Decidim module Conferences module ContentBlocks class HighlightedConferencesCell < Decidim::ViewModel delegate :current_user, to: :controller def show render if highlighted_conferences.any? end def highlighted_conferences OrganizationPrioritizedConferences.new(current_organization, current_user) end def i18n_scope "decidim.conferences.pages.home.highlighted_conferences" end def decidim_conferences Decidim::Conferences::Engine.routes.url_helpers end private def cache_hash hash = [] hash.push(I18n.locale) hash.push(highlighted_conferences.map(&:cache_key_with_version)) hash.join(Decidim.cache_key_separator) end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems