Sha256: aefa9844179e85df30d7d233a2214573378bfabf1b9fc2360bddce0d19e995b9
Contents?: true
Size: 630 Bytes
Versions: 18
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module Proposals # This cell renders the link to the published proposal of a collaborative draft. class CollaborativeDraftLinkToProposalCell < Decidim::ViewModel def show render if proposal end private def proposal @proposal ||= model.linked_resources(:proposal, "created_from_collaborative_draft").first end def decidim Decidim::Core::Engine.routes.url_helpers end def decidim_proposals Decidim::EngineRouter.main_proxy(model.component) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems