Sha256: cc70ac96753fbc14f4f202d4d78adde7800a7980762f1a64bc2bce2c59b97f7a
Contents?: true
Size: 930 Bytes
Versions: 27
Compression:
Stored size: 930 Bytes
Contents
# frozen_string_literal: true module Decidim module Verifications module IdDocuments module Admin class UpdateConfig < Decidim::Command def initialize(form) @form = form end def call return broadcast(:invalid) if form.invalid? update_config broadcast(:ok) end private attr_reader :form def update_config Decidim.traceability.perform_action!( :update_id_documents_config, form.current_organization, form.current_user ) do form.current_organization.id_documents_methods = form.selected_methods form.current_organization.id_documents_explanation_text = form.offline_explanation form.current_organization.save! end end end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems