Sha256: 3b7bffdd56a9d7854af7eb2e98f9ede1c51ffa819e03b51504525a76dc072dba
Contents?: true
Size: 1.12 KB
Versions: 7
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses module Admin # A command with all the business logic when updating a participatory # process in the system. class UpdateParticipatoryProcess < Decidim::Commands::UpdateResource fetch_file_attributes :hero_image fetch_form_attributes :title, :subtitle, :weight, :slug, :hashtag, :promoted, :description, :short_description, :scopes_enabled, :scope, :scope_type_max_depth, :private_space, :developer_group, :local_area, :area, :target, :participatory_scope, :participatory_structure, :meta_scope, :start_date, :end_date, :participatory_process_group, :participatory_process_type, :announcement private def related_processes @related_processes ||= Decidim::ParticipatoryProcess.where(id: form.related_process_ids) end def run_after_hooks resource.link_participatory_space_resources(related_processes, "related_processes") end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems