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