Class: Decidim::ParticipatoryProcesses::Admin::CreateParticipatoryProcessStep
- Inherits:
-
Commands::CreateResource
- Object
- Command
- Commands::CreateResource
- Decidim::ParticipatoryProcesses::Admin::CreateParticipatoryProcessStep
- Defined in:
- decidim-participatory_processes/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
Methods inherited from Commands::CreateResource
Methods inherited from Command
call, #evaluate, #method_missing, #respond_to_missing?, #transaction, #with_events
Constructor Details
This class inherits a constructor from Decidim::Commands::CreateResource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Decidim::Command
Instance Method Details
#attributes ⇒ Object
11 12 13 14 15 16 |
# File 'decidim-participatory_processes/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 |