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

Version Path
decidim-admin-0.29.0.rc4 app/commands/decidim/admin/destroy_component.rb
decidim-admin-0.29.0.rc3 app/commands/decidim/admin/destroy_component.rb
decidim-admin-0.29.0.rc2 app/commands/decidim/admin/destroy_component.rb
decidim-admin-0.29.0.rc1 app/commands/decidim/admin/destroy_component.rb