Class: Decidim::ParticipatoryProcessesController

Inherits:
ApplicationController show all
Includes:
NeedsParticipatoryProcess
Defined in:
app/controllers/decidim/participatory_processes_controller.rb

Overview

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#user_not_authorized_path

Instance Method Details

#indexObject



16
17
18
# File 'app/controllers/decidim/participatory_processes_controller.rb', line 16

def index
  authorize! :read, ParticipatoryProcess
end

#showObject



20
21
22
# File 'app/controllers/decidim/participatory_processes_controller.rb', line 20

def show
  authorize! :read, current_participatory_process
end