Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessesController

Inherits:
ApplicationController
  • Object
show all
Includes:
ParticipatorySpaceContext
Defined in:
app/controllers/decidim/participatory_processes/participatory_processes_controller.rb

Overview

A controller that holds the logic to show ParticipatoryProcesses in a public layout.

Instance Method Summary collapse

Instance Method Details

#indexObject



20
21
22
23
24
25
# File 'app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 20

def index
  redirect_to "/404" if published_processes.none?

  authorize! :read, ParticipatoryProcess
  authorize! :read, ParticipatoryProcessGroup
end

#showObject



27
# File 'app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 27

def show; end