Sha256: 7401e6f30260842865d85ee86f1b277d688c08be66030c9857d13fe048b9bf44

Contents?: true

Size: 275 Bytes

Versions: 13

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    class CloseDebateEvent < Decidim::Events::SimpleEvent
      def resource_text
        translated_attribute(resource.conclusions)
      end

      def event_has_roles?
        true
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-debates-0.29.1 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.28.4 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.29.0 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.28.3 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.29.0.rc4 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.29.0.rc3 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.29.0.rc2 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.29.0.rc1 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.28.2 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.28.1 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.28.0 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.28.0.rc5 app/events/decidim/debates/close_debate_event.rb
decidim-debates-0.28.0.rc4 app/events/decidim/debates/close_debate_event.rb