Sha256: 8150ba6dafc40f3cc29693e462a6402a9108032522de8d096c39e4998351439a

Contents?: true

Size: 562 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
decidim-initiatives-0.28.0 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.28.0.rc5 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
decidim-initiatives-0.28.0.rc4 app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb