Sha256: 24d2dd61712698f57aa448e8f87bff57ba15b4ef4d99982303702cf017db88c6
Contents?: true
Size: 718 Bytes
Versions: 8
Compression:
Stored size: 718 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses module Admin # A command with all the business logic when creating a new participatory # process step in the system. class CreateParticipatoryProcessStep < Decidim::Commands::CreateResource fetch_form_attributes :title, :description, :start_date, :end_date def attributes super.merge({ participatory_process: form.current_participatory_space, active: form.current_participatory_space.steps.empty? }) end private def resource_class = Decidim::ParticipatoryProcessStep end end end end
Version data entries
8 entries across 8 versions & 1 rubygems