Sha256: a0709534103a76e05bb9976c25b07afb486335191717d1df0f19b562948913cd
Contents?: true
Size: 1.08 KB
Versions: 7
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true module Decidim module Initiatives module Admin # A command with all the business logic that updates an # existing initiative type. class UpdateInitiativeType < Decidim::Commands::UpdateResource fetch_file_attributes :banner_image fetch_form_attributes :title, :description, :signature_type, :attachments_enabled, :comments_enabled, :undo_online_signatures_enabled, :custom_signature_end_date_enabled, :area_enabled, :promoting_committee_enabled, :minimum_committee_members, :collect_user_extra_fields, :extra_fields_legal_information, :validate_sms_code_on_votes, :document_number_authorization_handler, :child_scope_threshold_enabled, :only_global_scope_enabled protected def run_after_hooks resource.initiatives.signature_type_updatable.each do |initiative| initiative.update!(signature_type: resource.signature_type) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems