Sha256: 52ab27cf89d713c59355527fa35e2b0a24ba80e5dc52795d4ed4e67c0c68d96e
Contents?: true
Size: 479 Bytes
Versions: 9
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # A command with all the business logic when updating a static page. class UpdateStaticPage < Decidim::Commands::UpdateResource fetch_form_attributes :title, :slug, :weight, :topic, :content, :allow_public_access private def run_after_hooks return unless form.changed_notably UpdateOrganizationTosVersion.call(form.organization, resource, form) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems