Class: Decidim::Admin::DestroyShareToken

Inherits:
Commands::DestroyResource show all
Defined in:
decidim-admin/app/commands/decidim/admin/destroy_share_token.rb

Overview

A command with all the business logic to destroy a share token. This command is called from the controller.

Instance Method Summary collapse

Methods inherited from Commands::DestroyResource

#call, #initialize

Methods inherited from Command

call, #evaluate, #method_missing, #respond_to_missing?, #transaction, #with_events

Constructor Details

This class inherits a constructor from Decidim::Commands::DestroyResource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Decidim::Command

Instance Method Details

#extra_paramsObject



10
11
12
13
14
15
16
17
18
19
# File 'decidim-admin/app/commands/decidim/admin/destroy_share_token.rb', line 10

def extra_params
  {
    participatory_space: {
      title: participatory_space&.title
    },
    resource: {
      title: component&.name
    }
  }
end