Module: Decidim::Conferences::Admin::ConferencesHelper
- Defined in:
- app/helpers/decidim/conferences/admin/conferences_helper.rb
Overview
This class contains helpers needed to format ParticipatoryProcesses in order to use them in select forms for ConferenceParticipatoryProcess.
Instance Method Summary collapse
- #assemblies_selected ⇒ Object
-
#processes_selected ⇒ Object
Public: A formatted collection of ParticipatoryProcesses to be used in forms.
Instance Method Details
#assemblies_selected ⇒ Object
18 19 20 |
# File 'app/helpers/decidim/conferences/admin/conferences_helper.rb', line 18 def assemblies_selected @assemblies_selected ||= current_conference.linked_participatory_space_resources(:assemblies, "included_assemblies").pluck(:id) if current_conference.present? end |
#processes_selected ⇒ Object
Public: A formatted collection of ParticipatoryProcesses to be used in forms.
12 13 14 15 16 |
# File 'app/helpers/decidim/conferences/admin/conferences_helper.rb', line 12 def processes_selected if current_conference.present? @processes_selected ||= current_conference.linked_participatory_space_resources(:participatory_processes, "included_participatory_processes").pluck(:id) end end |