Class: Decidim::Consultations::ConsultationsController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- ApplicationController
- Decidim::Consultations::ConsultationsController
- Includes:
- NeedsConsultation, Orderable, Paginable, FilterResource, ParticipatorySpaceContext
- Defined in:
- decidim-consultations/app/controllers/decidim/consultations/consultations_controller.rb
Overview
A controller that holds the logic to show consultations in a public layout.
Constant Summary
Constants included from Paginable
Constants included from RedesignLayout
RedesignLayout::FALLBACK_LAYOUT
Instance Method Summary collapse
Methods included from NeedsConsultation
enhance_controller, extended, included
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#index ⇒ Object
26 27 28 |
# File 'decidim-consultations/app/controllers/decidim/consultations/consultations_controller.rb', line 26 def index :read, :consultation_list end |
#show ⇒ Object
30 31 32 |
# File 'decidim-consultations/app/controllers/decidim/consultations/consultations_controller.rb', line 30 def show :read, :consultation, consultation: current_consultation end |