Class: Decidim::Admin::CreateScope

Inherits:
Commands::CreateResource show all
Defined in:
decidim-admin/app/commands/decidim/admin/create_scope.rb

Overview

A command with all the business logic when creating a scope.

Instance Method Summary collapse

Methods inherited from Commands::CreateResource

#call

Methods inherited from Command

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

Constructor Details

#initialize(form, parent = nil) ⇒ CreateScope

Public: Initializes the command.

form - A form object with the params. parent - A parent scope for the scope to be created



12
13
14
15
# File 'decidim-admin/app/commands/decidim/admin/create_scope.rb', line 12

def initialize(form, parent = nil)
  super(form)
  @parent = parent
end

Dynamic Method Handling

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