Sha256: cb61906a35a7a69dd43649bad7d952a8a9d2e4b54ba8f80ac8069f4f8d57d038
Contents?: true
Size: 606 Bytes
Versions: 24
Compression:
Stored size: 606 Bytes
Contents
# frozen-string_literal: true module Decidim module Proposals class ProposalMentionedEvent < Decidim::Events::SimpleEvent include Decidim::ApplicationHelper i18n_attributes :mentioned_proposal_title def safe_resource_translated_text resource_text end def perform_translation? false end private def mentioned_proposal_title present(mentioned_proposal).title end def mentioned_proposal @mentioned_proposal ||= Decidim::Proposals::Proposal.find(extra[:mentioned_proposal_id]) end end end end
Version data entries
24 entries across 24 versions & 1 rubygems