class Decidim::Meetings::Admin::CloseMeetingForm
This class holds a Form to close a meeting from Decidim’s admin panel.
def map_model(model)
Private: Gets the proposals from the meeting and injects them to the form.
def map_model(model) self.proposal_ids = model.linked_resources(:proposals, "proposals_from_meeting").pluck(:id) end
def proposals
def proposals @proposals = Decidim.find_resource_manifest(:proposals) .try(:resource_scope, current_component) &.where(id: proposal_ids) &.order(title: :asc) end