Sha256: 9fa70caf57af805f1df10c0ca4e82386253ac80dcdc189ffafa993112455d71e

Contents?: true

Size: 567 Bytes

Versions: 4

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

require_dependency "decidim/application_controller"

module Decidim
  # A controller that holds the logic to show ParticipatoryProcessSteps in a
  # public layout.
  class ParticipatoryProcessStepsController < ApplicationController
    helper_method :participatory_process, :current_participatory_process
    layout "layouts/decidim/participatory_process", only: [:index]
    include NeedsParticipatoryProcess

    helper Decidim::ParticipatoryProcessHelper

    def index
      authorize! :read, ParticipatoryProcess
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.3.2 app/controllers/decidim/participatory_process_steps_controller.rb
decidim-core-0.3.1 app/controllers/decidim/participatory_process_steps_controller.rb
decidim-core-0.3.0 app/controllers/decidim/participatory_process_steps_controller.rb
decidim-core-0.2.0 app/controllers/decidim/participatory_process_steps_controller.rb