Sha256: bab0ad72fc6986586ddaa1ac7ce48d77960b89a01afe9e022b14061716810dc0
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # This command deals with destroying a component from the admin panel. class DestroyComponent < Decidim::Commands::DestroyResource private def run_before_hooks resource.manifest.run_hooks(:before_destroy, resource) end def run_after_hooks resource.manifest.run_hooks(:destroy, resource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems