Class: Decidim::ParticipatoryProcessesController
Overview
A controller that holds the logic to show ParticipatoryProcesses in a public layout.
Instance Method Summary
collapse
#user_not_authorized_path
Instance Method Details
#index ⇒ Object
16
17
18
|
# File 'app/controllers/decidim/participatory_processes_controller.rb', line 16
def index
authorize! :read, ParticipatoryProcess
end
|
#show ⇒ Object
20
21
22
|
# File 'app/controllers/decidim/participatory_processes_controller.rb', line 20
def show
authorize! :read, current_participatory_process
end
|