Class: Decidim::ParticipatoryProcesses::Admin::CreateParticipatoryProcessStep
- Inherits:
-
Commands::CreateResource
- Object
- Commands::CreateResource
- Decidim::ParticipatoryProcesses::Admin::CreateParticipatoryProcessStep
- Defined in:
- app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb
Overview
A command with all the business logic when creating a new participatory process step in the system.
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
11 12 13 14 15 16 |
# File 'app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb', line 11 def attributes super.merge({ participatory_process: form.current_participatory_space, active: form.current_participatory_space.steps.empty? }) end |