Class: Decidim::Admin::UpdateShareToken
- Inherits:
-
Commands::UpdateResource
- Object
- Command
- Commands::UpdateResource
- Decidim::Admin::UpdateShareToken
- 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
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_params ⇒ Object
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 |