Class: Decidim::CollaborativeTexts::Rollout
- Inherits:
-
Decidim::Commands::CreateResource
- Object
- Decidim::Command
- Decidim::Commands::CreateResource
- Decidim::CollaborativeTexts::Rollout
- Defined in:
- decidim-collaborative_texts/app/commands/decidim/collaborative_texts/rollout.rb
Overview
This command is executed when the user creates a Document from the admin panel.
Instance Method Summary collapse
-
#run_after_hooks ⇒ Object
1: add accepted suggestions authors as co-authors 2: transfer non-accepted suggestions to the new version.
Methods inherited from Decidim::Commands::CreateResource
Methods inherited from Decidim::Command
call, #evaluate, #method_missing, #respond_to_missing?, #transaction, #with_events
Constructor Details
This class inherits a constructor from Decidim::Commands::CreateResource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Decidim::Command
Instance Method Details
#run_after_hooks ⇒ Object
1: add accepted suggestions authors as co-authors 2: transfer non-accepted suggestions to the new version
12 13 14 15 16 17 |
# File 'decidim-collaborative_texts/app/commands/decidim/collaborative_texts/rollout.rb', line 12 def run_after_hooks process_accepted_suggestions return if form.draft? move_pending_suggestions end |