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

Version Path
decidim-proposals-0.25.2 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.25.1 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.25.0 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.25.0.rc4 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.25.0.rc3 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.25.0.rc2 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.25.0.rc1 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.24.3 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.23.6 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.24.2 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.23.5 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.24.1 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.24.0 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.24.0.rc2 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.23.4 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.24.0.rc1 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.23.3 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.23.2 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.23.1 app/events/decidim/proposals/proposal_mentioned_event.rb
decidim-proposals-0.23.1.rc1 app/events/decidim/proposals/proposal_mentioned_event.rb