Class: Decidim::Admin::CreateScope
- Inherits:
-
Commands::CreateResource
- Object
- Commands::CreateResource
- Decidim::Admin::CreateScope
- Defined in:
- 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.
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 'app/commands/decidim/admin/create_scope.rb', line 12 def initialize(form, parent = nil) super(form) @parent = parent end |