Sha256: 5d78dc21f1feaddfb9d428d77dc5e876aec39eda061d5ecb187048e63e15f8f0

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 Bytes

Contents

# frozen-string_literal: true

module Decidim::Amendable
  class AmendmentAcceptedEvent < Decidim::Amendable::AmendmentBaseEvent
    i18n_attributes :amendable_path, :amendable_type, :amendable_title, :emendation_path, :emendation_author_nickname, :emendation_author_path

    def amendment_resource
      @amendment_resource ||= resource.amendment
    end

    def amendable_resource
      @amendable_resource ||= resource.amendable
    end

    def emendation_resource
      resource
    end

    def event_has_roles?
      true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-core-0.17.2 app/events/decidim/amendable/amendment_accepted_event.rb
decidim-core-0.17.1 app/events/decidim/amendable/amendment_accepted_event.rb
decidim-core-0.16.1 app/events/decidim/amendable/amendment_accepted_event.rb
decidim-core-0.17.0 app/events/decidim/amendable/amendment_accepted_event.rb
decidim-core-0.16.0 app/events/decidim/amendable/amendment_accepted_event.rb