Sha256: aeba551e542ef7420fe48057c7c1ff2faf4f108b5976da34418d0fc0cb200f99

Contents?: true

Size: 562 Bytes

Versions: 42

Compression:

Stored size: 562 Bytes

Contents

# frozen-string_literal: true

module Decidim
  module Initiatives
    module Admin
      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
          decidim_admin_initiatives.edit_initiative_url(resource, resource.mounted_params)
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
decidim-initiatives-0.26.10 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.9 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.27.5 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.8 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.27.4 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.27.3 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.7 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.5 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.27.2 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.27.1 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.4 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.27.0 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.3 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.27.0.rc2 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.27.0.rc1 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.2 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.1 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.0 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.0.rc2 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.26.0.rc1 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb