Class: Decidim::Accountability::Admin::UpdateImportedResult
- Inherits:
 - 
      Commands::UpdateResource
      
        
- Object
 - Commands::UpdateResource
 - Decidim::Accountability::Admin::UpdateImportedResult
 
 
- Includes:
 - HasResultCommand
 
- Defined in:
 - app/commands/decidim/accountability/admin/update_imported_result.rb
 
Overview
This command is executed when the user imports a Result from the admin panel using the “Import results from CSV file” feature
Instance Method Summary collapse
- 
  
    
      #initialize(form, result, parent_id = nil)  ⇒ UpdateImportedResult 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Initializes an UpdateImportedResult Command.
 
Methods included from HasResultCommand
#link_meetings, #link_projects, #link_proposals, #meeting_ids, #meetings, #notify_proposal_followers, #projects, #proposals
Constructor Details
#initialize(form, result, parent_id = nil) ⇒ UpdateImportedResult
Initializes an UpdateImportedResult Command.
form - The form from which to get the data. result - The current instance of the result to be updated.
      18 19 20 21  | 
    
      # File 'app/commands/decidim/accountability/admin/update_imported_result.rb', line 18 def initialize(form, result, parent_id = nil) super(form, result) @parent_id = parent_id end  |