Sha256: c48b04676f27f40a1f1eabd2d3a58f3c014bc5b6a6606651a8731bb239786640

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A command with all the business logic to destroy a scope.
    class DestroyScope < Decidim::Commands::DestroyResource
      private

      def extra_params
        {
          extra: {
            parent_name: resource.parent.try(:name),
            scope_type_name: resource.scope_type.try(:name)
          }
        }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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