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-participatory_processes-0.26.1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.26.0 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.26.0.rc2 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.26.0.rc1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.25.2 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.25.1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.25.0 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.25.0.rc4 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.25.0.rc3 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.25.0.rc2 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.25.0.rc1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.24.3 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.23.6 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.24.2 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.23.5 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.24.1 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.24.0 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.24.0.rc2 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.23.4 app/events/decidim/participatory_process_step_changed_event.rb
decidim-participatory_processes-0.24.0.rc1 app/events/decidim/participatory_process_step_changed_event.rb