Sha256: 2a34501625ab2fced7eb88a0401f1659ee91b3c0fb32404754b259c99ac3fa79
Contents?: true
Size: 477 Bytes
Versions: 41
Compression:
Stored size: 477 Bytes
Contents
# frozen-string_literal: true module Decidim module Proposals class ProposalMentionedEvent < Decidim::Events::SimpleEvent include Decidim::ApplicationHelper i18n_attributes :mentioned_proposal_title 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
41 entries across 41 versions & 1 rubygems