Class: Decidim::Assemblies::Admin::CreateAssemblyAdmin

Inherits:
NotifyRoleAssignedToAssembly show all
Includes:
Decidim::Admin::CreateParticipatorySpaceAdminUserActions
Defined in:
decidim-assemblies/app/commands/decidim/assemblies/admin/create_assembly_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 Decidim::Admin::CreateParticipatorySpaceAdminUserActions

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

Methods inherited from NotifyRoleAssignedToAssembly

#send_notification

Constructor Details

#initialize(form, current_user, assembly) ⇒ CreateAssemblyAdmin

Public: Initializes the command.

form - A form object with the params. assembly - The Assembly that will hold the

user role

16
17
18
19
20
# File 'decidim-assemblies/app/commands/decidim/assemblies/admin/create_assembly_admin.rb', line 16

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