Class: Decidim::Admin::CreateScope
- Inherits:
-
Commands::CreateResource
- Object
- Command
- Commands::CreateResource
- Decidim::Admin::CreateScope
- 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
-
#initialize(form, parent = nil) ⇒ CreateScope
constructor
Public: Initializes the command.
Methods inherited from Commands::CreateResource
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