Sha256: 3c2e57f2904029c4888ad773a9332b4765caa44460f69d9e325e5f0e3254848e
Contents?: true
Size: 641 Bytes
Versions: 4
Compression:
Stored size: 641 Bytes
Contents
# frozen_string_literal: true module Decidim module Initiatives module ContentBlocks class HighlightedInitiativesCell < Decidim::ViewModel delegate :current_organization, to: :controller def show render if highlighted_initiatives.any? end def highlighted_initiatives OrganizationPrioritizedInitiatives.new(current_organization) end def i18n_scope "decidim.initiatives.pages.home.highlighted_initiatives" end def decidim_initiatives Decidim::Initiatives::Engine.routes.url_helpers end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems