app/controllers/decidim/consultations/consultations_controller.rb in decidim-consultations-0.15.2 vs app/controllers/decidim/consultations/consultations_controller.rb in decidim-consultations-0.16.0

- old
+ new

@@ -9,10 +9,11 @@ include NeedsConsultation include FilterResource include Paginable include Orderable + include ParticipatorySpaceContext helper_method :collection, :consultations, :finished_consultations, :active_consultations, :filter helper Decidim::FiltersHelper helper Decidim::OrdersHelper @@ -29,9 +30,13 @@ def show enforce_permission_to :read, :consultation, consultation: current_consultation end private + + def current_participatory_space_manifest + @current_participatory_space_manifest ||= Decidim.find_participatory_space_manifest(:consultations) + end def consultations @consultations = search.results @consultations = reorder(@consultations) @consultations = paginate(@consultations)