Class: Decidim::Verifications::IdDocuments::Admin::RejectionsController
- Inherits:
-
Admin::ApplicationController
- Object
- Admin::ApplicationController
- Decidim::Verifications::IdDocuments::Admin::RejectionsController
- Includes:
- Admin::WorkflowsBreadcrumb
- Defined in:
- app/controllers/decidim/verifications/id_documents/admin/rejections_controller.rb
Overview
Handles rejections for verification by identity document upload.
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'app/controllers/decidim/verifications/id_documents/admin/rejections_controller.rb', line 19 def create :update, :authorization, authorization: @pending_authorization @form = InformationRejectionForm.from_model(@pending_authorization) PerformAuthorizationStep.call(@pending_authorization, @form) do on(:ok) do flash[:notice] = t("rejections.create.success", scope: "decidim.verifications.id_documents.admin") redirect_to root_path end end end |