Class: Decidim::ParticipatoryProcesses::Admin::CreateParticipatoryProcessAdmin

Inherits:
NotifyRoleAssignedToParticipatoryProcess show all
Includes:
Admin::CreateParticipatorySpaceAdminUserActions
Defined in:
decidim-participatory_processes/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb

Overview

A command with all the business logic when creating a new participatory process admin in the system.

Instance Method Summary collapse

Methods included from Admin::CreateParticipatorySpaceAdminUserActions

#add_admin_as_follower, #call, #existing_user, #invitation_instructions, #invitation_pending?, #new_user, #user_form

Methods inherited from NotifyRoleAssignedToParticipatoryProcess

#send_notification

Constructor Details

#initialize(form, current_user, participatory_process) ⇒ CreateParticipatoryProcessAdmin

Public: Initializes the command.

form - A form object with the params. current_user - the user performing this action participatory_process - The ParticipatoryProcess that will hold the

user role

17
18
19
20
21
# File 'decidim-participatory_processes/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb', line 17

def initialize(form, current_user, participatory_process)
  @form = form
  @current_user = current_user
  @participatory_space = participatory_process
end