app/controllers/decidim/consultations/consultations_controller.rb in decidim-consultations-0.26.10 vs app/controllers/decidim/consultations/consultations_controller.rb in decidim-consultations-0.27.0.rc1

- old
+ new

@@ -36,31 +36,24 @@ def current_participatory_space_manifest @current_participatory_space_manifest ||= Decidim.find_participatory_space_manifest(:consultations) end def consultations - @consultations = search.results + @consultations = search.result @consultations = reorder(@consultations) @consultations = paginate(@consultations) end alias collection consultations - def search_klass - ConsultationSearch + def search_collection + Consultation.where(organization: current_organization).published end def default_filter_params { - search_text: "", - state: "all" - } - end - - def context_params - { - organization: current_organization, - current_user: current_user + search_text_cont: "", + with_any_date: "all" } end end end end