Class: Decidim::Accountability::Admin::UpdateImportedResult

Inherits:
Commands::UpdateResource show all
Includes:
HasResultCommand
Defined in:
decidim-accountability/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

Methods included from HasResultCommand

#link_meetings, #link_projects, #link_proposals, #meeting_ids, #meetings, #notify_proposal_followers, #projects, #proposals

Methods inherited from Commands::UpdateResource

#call

Methods inherited from Command

call, #evaluate, #method_missing, #respond_to_missing?, #transaction, #with_events

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 'decidim-accountability/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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Decidim::Command