Sha256: c86206727e4f5a0678134f2c6238e47428b0d3b726d85c6649b76bbd1edfc0c1

Contents?: true

Size: 321 Bytes

Versions: 58

Compression:

Stored size: 321 Bytes

Contents

# frozen-string_literal: true

module Decidim
  module Proposals
    class AcceptedProposalEvent < 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

58 entries across 58 versions & 1 rubygems

Version Path
decidim-proposals-0.27.9 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.8 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.7 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.6 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.10 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.9 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.5 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.8 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.4 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.3 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.7 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.5 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.2 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.1 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.4 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.0 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.3 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.0.rc2 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.27.0.rc1 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.2 app/events/decidim/proposals/accepted_proposal_event.rb