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.26.1 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.0 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.0.rc2 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.26.0.rc1 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.25.2 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.25.1 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.25.0 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.25.0.rc4 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.25.0.rc3 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.25.0.rc2 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.25.0.rc1 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.24.3 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.23.6 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.24.2 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.23.5 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.24.1 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.24.0 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.24.0.rc2 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.23.4 app/events/decidim/proposals/accepted_proposal_event.rb
decidim-proposals-0.24.0.rc1 app/events/decidim/proposals/accepted_proposal_event.rb