Sha256: eb0d2ddfe6d1db6aeaf9a9a151ab963a16fd6e58b41dd1cd653e51792f2412a1

Contents?: true

Size: 321 Bytes

Versions: 7

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    class RejectedProposalEvent < Decidim::Events::SimpleEvent
      include Decidim::Events::AuthorEvent

      def resource_text
        translated_attribute(resource.answer)
      end

      def event_has_roles?
        true
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-proposals-0.28.4 app/events/decidim/proposals/rejected_proposal_event.rb
decidim-proposals-0.28.3 app/events/decidim/proposals/rejected_proposal_event.rb
decidim-proposals-0.28.2 app/events/decidim/proposals/rejected_proposal_event.rb
decidim-proposals-0.28.1 app/events/decidim/proposals/rejected_proposal_event.rb
decidim-proposals-0.28.0 app/events/decidim/proposals/rejected_proposal_event.rb
decidim-proposals-0.28.0.rc5 app/events/decidim/proposals/rejected_proposal_event.rb
decidim-proposals-0.28.0.rc4 app/events/decidim/proposals/rejected_proposal_event.rb