Class: Decidim::Assemblies::Admin::CreateAssemblyAdmin
- Inherits:
-
NotifyRoleAssignedToAssembly
- Object
- Command
- NotifyRoleAssignedToAssembly
- Decidim::Assemblies::Admin::CreateAssemblyAdmin
- 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
-
#initialize(form, current_user, assembly) ⇒ CreateAssemblyAdmin
constructor
Public: Initializes the command.
Methods included from Decidim::Admin::CreateParticipatorySpaceAdminUserActions
#add_admin_as_follower, #call, #existing_user, #invitation_instructions, #new_user, #user_form
Methods inherited from NotifyRoleAssignedToAssembly
Methods inherited from Command
call, #evaluate, #method_missing, #respond_to_missing?, #transaction
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 |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Decidim::Command