Module: Decidim::Consultations::NeedsConsultation::InstanceMethods
- Defined in:
- app/controllers/concerns/decidim/consultations/needs_consultation.rb
Instance Method Summary collapse
-
#current_consultation ⇒ Object
(also: #current_participatory_space)
Public: Finds the current Consultation given this controller’s context.
Instance Method Details
#current_consultation ⇒ Object Also known as: current_participatory_space
Public: Finds the current Consultation given this controller’s context.
Returns the current Consultation.
31 32 33 |
# File 'app/controllers/concerns/decidim/consultations/needs_consultation.rb', line 31 def current_consultation @current_consultation ||= detect_consultation end |