Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Decidim::ParticipatoryProcesses::ParticipatoryProcessesController
- Includes:
- FilterResource, 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
#all_metrics ⇒ Object
33 34 35 36 37 38 39 |
# File 'app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 33 def all_metrics if current_participatory_space.show_statistics :read, :process, process: current_participatory_space else render status: :not_found end end |
#index ⇒ Object
22 23 24 25 26 27 |
# File 'app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 22 def index raise ActionController::RoutingError, "Not Found" if published_processes.none? :list, :process :list, :process_group end |
#show ⇒ Object
29 30 31 |
# File 'app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 29 def show :read, :process, process: current_participatory_space end |