Sha256: 424a57c5f1f549c5d4a08785434f82f7ea4df0ffade4234ddcc2f04cf927d6e6
Contents?: true
Size: 837 Bytes
Versions: 9
Compression:
Stored size: 837 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses module Admin # A command with all the business logic when updating a participatory # process group in the system. class UpdateParticipatoryProcessGroup < Decidim::Commands::UpdateResource fetch_file_attributes :hero_image fetch_form_attributes :title, :description, :hashtag, :group_url, :developer_group, :local_area, :meta_scope, :participatory_scope, :participatory_structure, :target, :promoted private attr_reader :form def attributes super.merge({ participatory_processes: }) end def participatory_processes Decidim::ParticipatoryProcess.where(id: form.participatory_process_ids) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems