Sha256: 5aa8ad567ed2b004a573448f9f0017be77a9cd9df9b4a1668e6d82716b5767d8

Contents?: true

Size: 501 Bytes

Versions: 10

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    class InitiativeSentToTechnicalValidationEvent < Decidim::Events::SimpleEvent
      include Rails.application.routes.mounted_helpers

      i18n_attributes :admin_initiative_url, :admin_initiative_path

      def admin_initiative_path
        ResourceLocatorPresenter.new(resource).edit
      end

      def admin_initiative_url
        EngineRouter.admin_proxy(resource).edit_initiative_url(resource)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-initiatives-0.29.1 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.28.4 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.29.0 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.28.3 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.29.0.rc4 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.29.0.rc3 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.29.0.rc2 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.29.0.rc1 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.28.2 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.28.1 app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb