Class: Decidim::Admin::UpdateShareToken

Inherits:
Commands::UpdateResource
  • Object
show all
Defined in:
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

Instance Method Details

#extra_paramsObject



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

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