Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessesController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- ApplicationController
- Decidim::ParticipatoryProcesses::ParticipatoryProcessesController
- Includes:
- FilterResource, HasParticipatorySpaceContentBlocks, Decidim::Paginable, Decidim::ParticipatorySpaceContext
- Defined in:
- decidim-participatory_processes/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb
Overview
A controller that holds the logic to show ParticipatoryProcesses in a public layout.
Constant Summary
Constants included from Decidim::Paginable
Instance Method Summary collapse
Methods included from RegistersPermissions
Methods inherited from ApplicationController
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from TranslatableAttributes
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#all_metrics ⇒ Object
34 35 36 |
# File 'decidim-participatory_processes/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 34 def all_metrics :read, :process, process: current_participatory_space end |
#index ⇒ Object
23 24 25 26 27 28 |
# File 'decidim-participatory_processes/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 23 def index raise ActionController::RoutingError, "Not Found" if published_processes.none? :list, :process :list, :process_group end |
#show ⇒ Object
30 31 32 |
# File 'decidim-participatory_processes/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb', line 30 def show :read, :process, process: current_participatory_space end |