Sha256: 79fba5497676c323a8ec57b533794348d310ec59983b834bbfca4ac617465127

Contents?: true

Size: 800 Bytes

Versions: 77

Compression:

Stored size: 800 Bytes

Contents

# frozen-string_literal: true

module Decidim
  class ParticipatoryProcessStepActivatedEvent < 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.27.9 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.8 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.7 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.6 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.26.10 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.26.9 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.5 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.26.8 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.4 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.3 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.26.7 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.26.5 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.2 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.1 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.26.4 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.0 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.26.3 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.0.rc2 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.27.0.rc1 app/events/decidim/participatory_process_step_activated_event.rb
decidim-participatory_processes-0.26.2 app/events/decidim/participatory_process_step_activated_event.rb