Sha256: 8a715410ee8d6fe5772a58282fbab95ddb132930068637c54708531f17868c13

Contents?: true

Size: 798 Bytes

Versions: 77

Compression:

Stored size: 798 Bytes

Contents

# frozen-string_literal: true

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

    def resource_path
      @resource_path ||= decidim_participatory_processes.participatory_process_participatory_process_steps_path(participatory_process_slug: participatory_space.slug)
    end

    def resource_url
      @resource_url ||= decidim_participatory_processes
                        .participatory_process_participatory_process_steps_url(
                          participatory_process_slug: participatory_space.slug,
                          host: participatory_space.organization.host
                        )
    end

    def participatory_space
      resource.participatory_process
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
decidim-admin-0.15.0 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.14.4 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.14.3 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.14.2 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.14.1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.13.1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.12.2 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.13.0 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.12.1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.13.0.pre1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.12.0 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.11.2 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.12.0.pre app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.11.1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.11.0.pre1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.10.1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-admin-0.10.0 app/events/decidim/participatory_process_step_changed_event.rb