Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessesController

Inherits:
ApplicationController
  • Object
show all
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
# File 'app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 20

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

#showObject



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

def show
  authorize! :read, current_participatory_process
end