Class: Decidim::Meetings::Admin::CloseMeetingForm
- Inherits:
 - 
      Form
      
        
- Object
 - Form
 - Decidim::Meetings::Admin::CloseMeetingForm
 
 
- Includes:
 - TranslatableAttributes
 
- Defined in:
 - app/forms/decidim/meetings/admin/close_meeting_form.rb
 
Overview
This class holds a Form to close a meeting from Decidim’s admin panel.
Instance Method Summary collapse
- 
  
    
      #map_model(model)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Private: Gets the proposals from the meeting and injects them to the form.
 - #proposals ⇒ Object
 
Instance Method Details
#map_model(model) ⇒ Object
Private: Gets the proposals from the meeting and injects them to the form.
Returns nothing.
      28 29 30  | 
    
      # File 'app/forms/decidim/meetings/admin/close_meeting_form.rb', line 28 def map_model(model) self.proposal_ids = model.linked_resources(:proposals, "proposals_from_meeting").pluck(:id) end  | 
  
#proposals ⇒ Object
      32 33 34 35 36 37  | 
    
      # File 'app/forms/decidim/meetings/admin/close_meeting_form.rb', line 32 def proposals @proposals = Decidim.find_resource_manifest(:proposals) .try(:resource_scope, current_component) &.where(id: proposal_ids) &.order(title: :asc) end  |