Class: Decidim::Admin::UpdateShareToken

Inherits:
Commands::UpdateResource show all
Defined in:
decidim-admin/app/commands/decidim/admin/update_share_token.rb

Overview

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

Instance Method Summary collapse

Methods inherited from Commands::UpdateResource

#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::UpdateResource

Dynamic Method Handling

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

Instance Method Details

#extra_paramsObject



12
13
14
15
16
17
18
19
20
21
# File 'decidim-admin/app/commands/decidim/admin/update_share_token.rb', line 12

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